Text wrap in table to fill-remaining-width middle column - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Text wrap in table to fill-remaining-width middle column

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 w  w  . j a  va  2  s . c om-->
   display:flex;
}

.line {
   background:linear-gradient(blue, blue) center/2px 2px repeat-x;
   flex:2;
   min-width:100px;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div>
     Lorem ipsum dolor sit amet, consectetur adipisc 
   </div> 
   <div class="line"></div> 
   <div>
     Lorem ipsum dolor sit amet, 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials