Css
Css
1. Content: The actual content of the box (like text, images, etc.). This is the innermost
area where the main content resides.
2. Padding: The space between the content and the border. Padding is transparent and
can be adjusted to increase or decrease the space between the content and the border.
3. Border: The line surrounding the padding (if any) and content. You can style borders
by setting thickness, color, and style (solid, dashed, etc.).
4. Margin: The outermost space around the element. It separates the element from other
elements on the page. Like padding, margins are transparent, but they don't affect the
box's dimensions.
Example:
.box {
width: 200px; /* Content width */
padding: 20px; /* Space between content and border */
border: 5px solid black; /* Border thickness and style */
margin: 10px; /* Space outside the box */
}