Side-by-side elements without using tables - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

Side-by-side elements without using tables

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">
.comment-row { position relative; }
.icon-set {<!--  w  w w  .j  av a  2s . c  o  m-->
   position:absolute;
}

.icon-set a {
   display:block;
   text-indent:-100000px;
   border:2px solid;
   width:17px;
}

.comment {
   margin-left:31px;
}
</style> 
 </head> 
 <body> 
  <div class="comment-row"> 
   <ul class="icon-set"> 
    <li class="icon-1"> <a href="">Lore</a> </li> 
    <li class="icon-2"> <a href="">Lore</a> </li> 
   </ul> 
   <div class="comment"> 
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur lacinia sem. Proin luctus facilisis volutpat. Ut semper</p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials