CSS Box Model
CSS Box Model
margin
Its sets space between space border amd page the attributes are:
Attribute Description
Margin Short hand all directions
Syntax:
Margin:top,left,bottom
Ex:
Margin:50px,100px,30px,100px
Padding:
Padding
Padding-left
Padding-right
Padding-top
Padding-bottom
Border:
Border-width: pixels
Border-top-left-radius
Border-image: URL
Syntax:
Div.
Css positions
Relative
Absolute
Fixed
Sickly
Static
Static:
Its keeps the element according to document flow will not remove its flow
Absolute:
Its removie
It can fix an element to cintent the page and scrolls along with content
Fixed:
Sticky:
Vvit keeos element according to normal flow of document it can strict the element after reaching
specified point
Relative:
It keep the element according to normal flow of document
It is used to consents overlapping the page you can send forwards and backward in any element
We can change the position of index trading the zero which means back