DEV Community

AKSH DESAI
AKSH DESAI

Posted on

CSS Outline

6. 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>
    * {
      color: white;
      background-color: rgb(41, 40, 40);
      margin: 0;
      font-size: 50px;
    }

    p {
      border: 3px solid red;
      outline: 5px double green;
      outline-offset: 3px;
    }
  </style>
</head>


<body>
  <h1> Yahoo Baba Css Outline </h1>

  <p> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Possimus, facilis. </p>

  <br>
  <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad, magni. </p>
</body>

</html>
Enter fullscreen mode Exit fullscreen mode

Output
Output

Thank You.
You can follow us on:
Youtube
Instagram

Top comments (0)