Switch to full style
HTML code examples
Post a reply

vertical alignment of span tag

Fri Feb 24, 2012 11:12 pm

In this example we present vertical alignment of span tag in two cases sub and super. This in useful in cases like: presenting power of a number.

Code:
<html>
    <
head>
        <
title>span vertical align   </title>
<
style type='text/css'>
 
span.superSpan {
    
vertical-alignsuper;
}
span.subSpan {
    
vertical-alignsub;
}

</
style>


    </
head>
    <
body>
        <
p>
            
this part of text  is sub : <span class='subSpan'>lowered</span>
        </
p>
        <
p>
            
ths part of text is super :<span class='superSpan'>raised</span>
        </
p>
    </
body>
</
html>
 




Post a reply
  Related Posts  to : vertical alignment of span tag
 Div Table with css row span     -  
 vertical align of the image     -  
 row-span attribute usage     -  
 Adding vertical array in java     -  
 Label Alignment example     -  
 Text alignment problem with IE     -  
 text alignment to right in a awt list box     -  
 how to change the alignment text in html     -  

Topic Tags

HTML Span