2 Divs and Table Cells Floating next to each, one to have display: inline and the other to fill rest of the row - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

2 Divs and Table Cells Floating next to each, one to have display: inline and the other to fill rest of the row

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
table.certificatebar {
   width:100%;
}

.certificatetitle {<!--from   w  w w .  ja v  a2  s .com-->
   font-weight:100;
   font-size:17px;
}

.collapsed .line {
   height:41px;
}

.line {
   height:41px;
   width:100%;
}

.line hr {
   color:Chartreuse;
   background-color:yellow;
   border-color:blue;
   height:2px;
}
</style> 
 </head> 
 <body> 
  <table class="certificatebar" height="40px"> 
   <tbody> 
    <tr> 
     <td class="certicon" width="30px"></td> 
     <td class="certificatetitle">Lorem ipsum dolo</td> 
     <td class="line"> 
      <hr> </td> 
     <td class="dropdown" width="20"></td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials