DEV Community

AKSH DESAI
AKSH DESAI

Posted on

CSS Height & Width

9. Code

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    #first {
      border: 3px solid blue;
      width: 700px;
      height: 100px;
    }
  </style>
</head>

<body>
  <h1> Yahoo Baba CSS Width and Height </h1>

  <div id="first">
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti excepturi unde culpa laudantium tempore ad tempora distinctio quibusdam reprehenderit eius.
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti excepturi unde culpa laudantium tempore ad tempora distinctio quibusdam reprehenderit eius.
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti excepturi unde culpa laudantium tempore ad tempora distinctio quibusdam reprehenderit eius.
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti excepturi unde culpa laudantium tempore ad tempora distinctio quibusdam reprehenderit eius.
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti excepturi unde culpa laudantium tempore ad tempora distinctio quibusdam reprehenderit eius.
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti excepturi unde culpa laudantium tempore ad tempora distinctio quibusdam reprehenderit eius.
  </div>
</body>

</html>
Enter fullscreen mode Exit fullscreen mode

Output
Output

Thank You.
You can follow us on:
Youtube
Instagram

Top comments (0)