Edit

CSS Height and Width Properties

The height and width properties are used to fix the height and width of the HTML document or any web page section.

Example of Code

<!DOCTYPE html>
<html>
<head>
    <title>Example</title>
    <style>
       #div1 {
        height: 150px;
        width: 75px;
        background-color: gold;
      }
    </style>
</head>
<body>
    <div id="div1">
  This div has height and width applied.
</div>
</body>
</html>

Output

    Example       
  This div has height and width applied.