Set text indent to -5em : text indent : Text HTML CSS TUTORIALS


HTML CSS TUTORIALS » Text » text indent »

 

Set text indent to -5em


 
<!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>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Text
» text indent