Answers for "How to add background color in specific region using HTML"

0

How to add background color in specific region using HTML

<!DOCTYPE html>
<html>
  <head>
    <title>Putting BG color in a specific region</title>

    <style>

    #ABC {
      background-color: blue;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }

    body{
      background: grey;
      margin: 0;
    } 

    </style>

  </head>

  <body>

<section id="ABC">


</section>

  </body>
</html>
Posted by: Guest on February-20-2022

Code answers related to "How to add background color in specific region using HTML"

Browse Popular Code Answers by Language