Which CSS property would you use to create space between the border of a box and the content within it?

  • border-spacing
  • margin
  • padding
  • spacing
The padding property is used to create space between the border of a box and its content. It defines the space between the element's content and its border. This is essential for controlling the layout and appearance of elements in a webpage.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *