DEV Community

AKSH DESAI
AKSH DESAI

Posted on

CSS Padding Tutorial

7. 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>
    .test {
      border: 2px solid black;
      padding: 10px;
      margin: 10px;
    }
  </style>
</head>

<body>
  <h1> Yahoo Baba CSS Padding </h1>

  <div class="test">
    <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti illo assumenda aspernatur quae quidem, veniam modi voluptatibus, nemo cum qui dolorem quos nulla. Deserunt autem reprehenderit minima animi, quasi eligendi. </p>
  </div>
</body>

</html>
Enter fullscreen mode Exit fullscreen mode

Output
Output

Thank You.
You can follow us on:
Youtube
Instagram

Top comments (0)