css second line indent

54

<!--Please give a thumbs up if this was helpfull-->

<!DOCTYPE html>
<html>
  
<head>
    <title>
        Set indent in second line of paragraph
    </title>
  
    <meta name="viewport" content=
        "width=device-width, initial-scale=1.0" />
  
    <style>
        h2 {
            text-align: center;
        }
  
        div.a {
            text-indent: -36px;
            padding-left: 36px;
        }
    </style>
</head>
  
<body>
    <h2><u>GEEKS FOR GEEKS</u></h2>
  
    <div class="a">
        <p>
            He started with <a href="https://www.geeksforgeeks.org/">
            <b>Geeks for Geeks</b></a> as just a blog based site with
            articles on programming questions, then later on expanded
            to courses and now is a portal covering programming
            questions, interview experiences and even a coding platform
            taking inspiration from other competitive coding sites.
        </p>
    </div>
</body>
  
</html>

Comments

Submit
0 Comments