ziedinjsh Posted November 4, 2010 Report Share Posted November 4, 2010 Sveiki! Man radās problēma! Es taisu menu sadaļu ar ul li. ul li atrodas iekš div kuram ir text-align:right; kad taisu li float:right tad man menu saraksts air tajā labajā malā, bet tikai saraksts ir otrādi. html <div id="headline"> <div class="logo"><img src="misc/img/logo.png"></div> <div class="menu"> <ul> <li>Home</li> <li>Find People</li> <li>Online Profile</li> <li>About</li> </ul> </div> </div> CSS #headline{ width:100%; height:40px; background-color:#89AFC5; border-left:0px solid #3D637A; border-top:1px solid #3D637A; border-right:0px solid #3D637A; border-bottom:1px solid #3D637A; } #headline .logo{ width:210px; height:40px; margin-left:190px; float:left; } #headline .menu{ width:670px; height:40px; border:0px solid #000; margin-right:190px; float:right; text-align:right; padding-right:5px; } #headline .menu ul{ padding:0; margin:0; list-style:none; display: block; } #headline .menu li{ float:right; } Paldies jau iepriekš Quote Link to comment Share on other sites More sharing options...
mefisto Posted November 4, 2010 Report Share Posted November 4, 2010 #headline .menu li{ float:left; } Šitā derēs ? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted November 4, 2010 Author Report Share Posted November 4, 2010 Paldies! :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.