Negative text indent value: -60px : text indent « CSS « HTML / CSS






Negative text indent value: -60px

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
p.hanging {
 text-indent: -5em;
 margin-left: 5em;
}

#content p.hanging {
 text-indent: -60px;
 margin: 0 0 0 60px;
 padding: 0;
}
#content h3 {
 text-indent: -60px;
 margin: 0 0 0 60px;
 padding: 0;
}
</style>
</head>

<body>
  <div id="content">
       <h3>Once more time with feeling</h3>
       <p class="hanging">handing;</p>
  </div>
</body>
</html>

   
  








Related examples in the same category

1.'text-indent' Example
2.text-indent: 25%
3.text-indent: -5%
4.text-indent: -25px (positive value)
5.text-indent: 25px;
6.
  • text indent: -0.75em
  • 7.text-indent: 3em
    8.text-indent: 10%;
    9.text-indent: -25px;
    10.text-indent:3em;
    11.text-indent: -15px;
    12.text-indent: -25px;(negative value)
    13.text-indent: 25%;(percentage)
    14.text-indent: 20px;
    15.paragraph indent
    16.Paragraphs separated by indenting
    17.Set text indent to 37%
    18.Set text indent to 35px
    19.Set text-indent to 2.5em
    20.uses a negative value for text-indent and a positive value for padding-left.
    21.Set text indent to -5em