I have a div that is set to 100%, and inside this other div that is centered and set to 883px.
Navigation is a list, but if I applied the float: right element to this element, it reordered the list. Of course, I could change the order in the code, but should there be a better way?
<div id="navigation">
<ul class="navigation">
<li><a href="#" title="" alt="" class="current">home</a></li>
<li><a href="#" title="" alt=""><img src="images/navline.png" align="right">portfolio</a></li>
<li><a href="#" title="" alt="">blog</a></li>
<li><a href="#" title="" alt="">get in touch</a></li>
</ul>
</div>
<div id="border"></div>
<div style="clear:both"></div>
And CSS ...
#navigation {
width:100%;
background-color:#383a3c;
height:43px;
}
#navigation ul {
width:883px;
margin:0px auto;
}
ul.navigation {
font-family:'ChunkFiveRegular', Arial, sans-serif;
font-size:18px;
}
#navigation li a {
display:block;
margin:13px 0px 0px 0px;
text-decoration:none;
color:#8cd8db;
float:right;
}
Can someone help show me the error of my paths?
source
share