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>
<html>
<head>
   <title>css tutorial</title>
<style>
div{
   text-align: center;
   color: red;  
   border: 10px solid #000;
   margin: 20px;
   padding: 20px;
}
</style>
</head>
<body>
   <div>my car</div>
</body>
</html>


Run

Our Content