If you have any query feel free to chat us!
Happy Coding! Happy Learning!
The box model in CSS refers to the rectangular boxes that are generated for each HTML element on a web page. Each box consists of four parts: content, padding, border, and margin.
padding
property in CSS.border
property in CSS.margin
property in CSS.Here's an example to show the box model:
cssCopy code
div {
width: 300px;
height: 200px;
padding: 20px;
border: 10px solid black;
margin: 30px;
}
In this example, the div
element will have a content area that is 260px
wide and 160px
tall, a 20px
padding, a 10px
solid black border, and a 30px
margin.
Comments: 2
I am not able to access videos from second class and further. I have already completed first class
When will I get my course?
Now, Your query was resolved.