span vertical-align: sub; : span align « Tags « HTML / CSS






span vertical-align: sub;

     
<!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' xml:lang='en'>
    <head>
        <title>vertical-align</title>
<style type='text/css'>
p {
    font: 16px sans-serif;
    margin: 25px 0;
}
span#sub {
    vertical-align: sub;
}
span#super {
    vertical-align: super;
}
</style>


    </head>
    <body>
        <p>
            Subscript text is <span id='sub'>lowered</span>
        </p>
        <p>
            Superscript text is <span id='super'>raised</span>
        </p>
    </body>
</html>

   
    
    
    
    
  








Related examples in the same category

1.span vertical-align: super;
2.span vertical-align: 300%;
3.span vertical-align: top;
4.span vertical-align: middle;
5.span vertical-align: bottom;
6.span with vertical align
7.inline vertical-align: top
8.inline vertical-align: middle
9.Inline vertical-align: bottom