Click here to Skip to main content
15,895,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the following code I am unable to set the order of menus as it is when I use float to right. It is getting reversed. If I set to float to left it works fine.

CSS
.menu ul{
display:table;
display:table-cell;
float:right;
background:yellow;
height:50px;
list-style:none;
margin:0;
padding:0;
width:1015px;
margin-left:296px;
margin-top:130px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.menu ul li{
  float:left;
  display:table-cell;
}


XML
<div class="menu">
   <ul >
      <li id="one"><a href="default.aspx" >Home</a></li>
      <li id="two"><a href="aboutus.aspx" id="current">About us</a>    </li>
      <li id="ourservices"><a href="#">Our services</a>
    <ul>

...
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900