Don’t click this link : https://www.youtube.com/channel/UCIHvZ0mjSKa2ywuyDEcF-PA?sub_confirmation=1
WhatsApp Group link please join https://chat.whatsapp.com/GD1RWHFZyAV6i4EAThPw7S
HTML AND CSS BOOK https://drive.google.com/file/d/1y-0nGGdFhDVo4byh5q9t7H4TdpPni0lL/view?usp=sharing
Playlist Web development Course https://www.youtube.com/watch?v=yrDisKLL5GQ&list=PLpLR4EBVned_sjbjvEN8s9W8nicJpDanw
In this video, I am telling about what is CSS box model is margin, padding, and border and understand the basic structure of the box model in CSS please watch this video and hit the like and subscribe button.
The Box model in CSS.
In CSS, the term "box model" is used when talking about design and layout. The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content. The image below illustrates the box model:
Explanation of different parts :
• Content - The content of the box, where text and images appear
• Padding - Clears an area around the content. The padding is transparent
• Border - A border that goes around the padding and content
• Margin - Clears an area outside the border. The margin is transparent
The box model allows us to add a border around elements, and to define space between elements.