Align two spans inside a td with One left and one right - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Float

Description

Align two spans inside a td with One left and one right

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w  w  w  .j  a va 2s . co  m-->
 <body> 
  <table style="width:100%"> 
   <tbody> 
    <tr> 
     <td colspan="5"> <span style="float:left;">$</span> <span style="float:right;">1000</span> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials