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.
Loading...
Related Quiz
- You're optimizing a web page's load time and observe that the Critical Rendering Path is being impacted by large CSS files. What strategy would you adopt to optimize the CSS delivery for better performance?
- An element with float: right; will move to the ________ of its containing element.
- What does the CSS box-sizing property do?
- In a large project, you want to have separate SCSS files for variables, mixins, and base styles. How would you structure and integrate them into a main SCSS file?
- How do you position an item in the third row and second column of a grid?