Div with absolutely positioned <span> overwrites next <div> - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

Div with absolutely positioned <span> overwrites next <div>

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">
#container {<!-- w ww  .j a  va 2s . c  om-->
   font-family:sans-serif;
   position:absolute;
   left:11px;
   top:11px;
   width:601px,
}

.cvyear {
   display:table-cell;
   width:121px;
}

.cvtext {
   display:table-cell;
   width:481px;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div class="solodiv"> 
    <span class="cvyear">Lore</span> 
    <span class="cvtext"> <em>Lorem </em>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper mole</span> 
   </div> 
   <div class="solodiv"> 
    <span class="cvyear">Lore</span> 
    <span class="cvtext"> <em>Lorem </em>Lorem ipsum dolor sit </span> 
   </div> 
   <div class="solodiv"> 
    <span class="cvyear">Lorem ipsum</span> 
    <span class="cvtext"> <em>Lorem </em>Lorem ipsum dolor sit amet, </span> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials