body { background-color:black; direction:rtl; } h1 { background-color:red; } #main { float:right; list-style:none; position:absolute; background-color:red; } #main li { position:relative; float:right; padding:0 15px; background-color:red; } #main li a { text-decoration:none; float:right; line-height:32px; background-color:red; } #main li a:hover { color:white; background-color:red; } #main li ul { list-style:none; display:none; position:absolute; top:32px; width:120px; background-color:red; } #main li:hover ul { display:block; background-color:red; } #main li ul li { float:none; width:130px; left:40px; background-color:red; } #main li ul li a { float:none; display:block; background-color:red; } a { color:black; background-color:red; }