welcome to tutorialfamily

css box model

box model means design and layout of element.

It contain margin, padding, outline, border.

css box model

  • content – content in element
  • padding – padding inside of an element
  • border – border of an element
  • margin – margin inside of an element

css box model

<!DOCTYPE html>
   <title>css tutorial</title>
   text-align: center;
   color: red;  
   border: 10px solid #000;
   margin: 20px;
   padding: 20px;
   <div>my car</div>


Our Content