HTML CSS examples for CSS Layout:Position
CSS sidebar positioning and banner
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #navigation {<!-- w ww.j a va 2 s. c o m--> width:100%; height:51px; clear:both; color:Chartreuse; background:yellow; background:-moz-linear-gradient(top, blue 0%, pink 50%, OrangeRed 51%, grey 100%); background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,BlueViolet), color-stop(50%,Chartreuse), color-stop(51%,yellow), color-stop(100%,blue)); font:13px Verdana, Geneva, sans-serif; } #navigation ul { margin:0 auto; width:auto; padding:0; } #navigation ul li { display:inline-block; color:pink; padding:0 26px; height:51px; } #navigation ul li a { color:OrangeRed; text-decoration:none; position:relative; top:31px; } </style> </head> <body> <div id="navigation"> <ul> <li> <a href="#">Lor</a> </li> <li> <a href="#">Lore</a> </li> <li> <a href="#">Lorem ips</a> </li> <li> <a href="#">Lore</a> </li> </ul> </div> </body> </html>