Top align two spans with different font-size - HTML CSS CSS Property

HTML CSS examples for CSS Property:font-size

Description

Top align two spans with different font-size

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
span {<!--from   w ww.ja va  2 s . c  o m-->
   vertical-align:top;
   background:green;
}
</style> 
 </head> 
 <body translate="no"> 
  <div> 
   <span style="font-size: 10px">Foo</span> 
   <span style="font-size: 25px">Blah</span> 
  </div>  
 </body>
</html>

Related Tutorials