CSS positioning of two horizontal elements - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

CSS positioning of two horizontal elements

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
table {<!--from   w  w w.ja va2 s  . co  m-->
   width:100%;
}

td span:first-of-type {
   float:left;
}

td span:last-of-type {
   float:right;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> <span>Lor</span> <span> <a href="">Lor</a> </span> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials