Box Model in CSS

Box Model :-

In HTML, All HTML elements can be considered as boxes. The CSS box model is essentially a box that wraps around every HTML element. It consists of: content, padding, borders and margins.

css box model

Box Model Elements :-

box model contents

CSS BOX MODEL PROPERTIES

Note :-
We can give border, padding, margin their style in different dimensions by follwing methods :-
property in different dimentions
We can combine these by following method.
Property dimeation combine
If only one value is given :-
one dimeational value
If two values are given :-
two  dimeational value
If three values are given :-
three  dimeational value
If four values are given :-
four  dimeational value

Delta Batch Practice Page :-

BOX MODEL PRACTICE PAGE | DELTA BATCH