text-indent does not work on inline elements : span text « Tags « HTML / CSS






text-indent does not work on inline elements

    

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title></title>
<style type="text/css" media="Screen">
* .myStyle {
  text-indent: 60px;
}
</style>
</head>
<body>
<p><span class="myStyle">this is a test. </span></p> 


</body>
</html>

   
    
    
  








Related examples in the same category

1.Span text-transform: uppercase;
2.Span text-align: center;
3.span text-decoration: underline;
4.span text-decoration: overline;
5.span text-decoration: line-through;
6.span text-decoration: blink;
7.span text-decoration: underline overline;
8.span text-decoration: underline line-through;
9.span text-decoration: overline line-through;
10.span text-transform: lowercase;
11.span text-transform: capitalize;
12.span vertical-align: text-top;
13.span vertical-align: text-bottom;
14.When vertically aligning inline elements,the vertical-align property can be: top, middle, bottom, text-top, text-bottom.
15.Inline vertical-align: text-bottom
16.Inline vertical-align: text-top