Jump to content
php.lv forumi

problēmas ar ul li


ziedinjsh

Recommended Posts

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š

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...