Positioning a table in CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Position

Description

Positioning a table in CSS

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">
.navholder {<!--  w ww.  j av  a2s .  co  m-->
   width:501px;
   margin:31px auto;
}

a {
   display:inline- block;
   height:51px;
   padding:16px;
   margin-left:11px;
   background-color:Chartreuse;
   text-decoration:none;
   color:yellow;
}

a:first-child {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <div class="navholder"> 
   <a href="#">Lorem ipsum dolor</a> 
   <a href="#">Lorem</a> 
   <a href="#">Lorem</a> 
   <a href="#">Lorem</a> 
  </div>  
 </body>
</html>

Related Tutorials