开发者

how to have a menu across top with links left aligned and right aligned

开发者 https://www.devze.com 2023-04-07 07:14 出处:网络
this may seem simple. I have a menu across the top of the page currently right aligned. I want one link to be to the left of the page. How do it?

this may seem simple. I have a menu across the top of the page currently right aligned. I want one link to be to the left of the page. How do it?

 <div id="toptop"> 
     <ul id="bottomnavlistl">
    <li class="a">
             <a href="@Url.Content("~/Account/EditDetails/")">LOGIN</a>
             <a href="@Url.Content("~/Account/LogOff/")">LOGOUT</a>
    </li>
    <li cl开发者_开发百科ass="first"><a href="@Url.Content("~")">HOME</a></li>

css

    ul#bottomnavlistl li
{    
    display: inline;
    padding: 10px 0px 5px 0px;
    border-right: 1px dotted #8A8575; 
    float:right;   
}


Use float:left

http://htmldog.com/reference/cssproperties/float/


Your css should have somthing like

.a{float:left;}
.first{float:right}

A demo here

0

精彩评论

暂无评论...
验证码 换一张
取 消