center text at bottom of table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

center text at bottom of table cell

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">
ul {<!--   w ww.  j a  v a  2  s.c om-->
   display:table;
   table-layout:fixed;
   width:100%;
   padding:0;
}

li {
   display:table-cell;
   height:151px;
   border:2px solid Chartreuse;
   position:relative;
   text-align:center;
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li> <a href="news.asp">Lorem</a> </li> 
   <li> <a href="contact.asp">Lorem</a> </li> 
   <li> <a href="about.asp">Lorem</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials