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

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs