HTML CSS examples for CSS Widget:Table Position
Positioning a table in CSS
<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>