Subscribe Us

Responsive Advertisement

Advertisement

12.padding

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        body
        {
             margin: 0px;
             padding: 0px;
        }
          .div1
          {
            text-align: center;
            padding: 30px;
            background-color: red;
            width: 200px;
            margin-bottom: 10px;
          }
          .div2
          {
           
            padding: 30px;
            margin-top: 10px;
            background-color: blue;
            width: 200px;
          }
        </style>
</head>
<body>
   
         <div class="div1">
              <p>ICPC</p>
            </div>
            <div class="div2">
                   <p>NCPC</p>
                </div>

</body>
</html>

Post a Comment

0 Comments