* { margin:0px; padding:0px; list-style:none; } body { font-size:12px; } .nav { float:left; clear:both; margin:100px; display:inline; } .nav li { float:left; position:relative; } .nav li a { display:block; width:60px; padding:8px 0px 6px; text-align:center; color:#000; background:#ccc; text-decoration:none; } .nav li a:hover { background:#666; color:#fff; } .nav li ul { position:absolute; display:none; } .nav li ul li { float:none; } .nav li ul li a { background:#eee; }