align div on the bottom inside table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

align div on the bottom inside table cell

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!-- w w  w  .j av  a2  s  . co  m-->
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> 
      <div style="display:table"> 
       <div style="display:table-cell"> 
        <img src="https://www.java2s.com/style/demo/Firefox.png" style="max-width: 200px; max-height: 200px;"> 
       </div> 
       <br> 
       <div style=" vertical-align: bottom;display: table-cell ">
         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ul 
       </div> 
      </div> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials