Friday, 7 June 2019
Box Model in CSS
According to this concept, every single element of HTML is a rectangular box. This box is made up of content, border, margin, and padding of that element. This box-model has been depicted in the diagram below.
Margin: - Margin is defined as the space of four outside the boundary of an element. It does not have any color but rather it is transparent.
Border: - The boundary of an element is its boundary line. The border is hidden, but we can define it by CSS and show it.
Padding: - It is defined as the space between an element's content and its border. As a margin, there is no color of padding, but it is transparent.
Content: - This is real content such as text, images, etc.
Recommended Articles
- Web Devolpment in Easy Way
Float Property in CSSJun 08, 2019
Float Float property can have one of these five values ​​- left: - If the value is given then the element is left float on the left side. rig...
- Web Devolpment in Easy Way
Positioning in CSSJun 08, 2019
Positioning in CSS When we create a webpage, many elements are shown in the same order in which we have created them and each element has a...
- Web Devolpment in Easy Way
Text in CSSJun 08, 2019
Text in CSS The color property is used to set the color of the text. We can colorize the colors in the following ways. From color name - lik...
- Web Devolpment in Easy Way
Z Index in CSSJun 07, 2019
Z Index in CSS z-index property is used to define HTML elements of the stack order. Stack order means that any element will look above any oth...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment