Hi, my code is displaying my inline list improperly. As it is now, it's showing the left image and the nav bar background properly but then there is a line break and then it displays the inline list, then another line break and finally the right image.
It should be left image, inline list over the nav background, right image...all on the same line.
Here's my code
Anyone see where I'm going wrong here? Thanks!
It should be left image, inline list over the nav background, right image...all on the same line.
Here's my code
Code:
/* the css */
div#nav {
height:32px;
width:950px;
}
#navong {
float:right;
background-image:url(../img/nav_ong_bg.gif);
background-repeat:repeat-x;
height:32px;
max-width:674px;
}
#navong li
{
display: inline;
list-style-type: none;
padding: 0 20px 0 0;
margin: 0px;
}
<!-- the html -->
<div id="nav">
<div id="navong">
<img src="assets/img/nav_ong_lft.gif" width="4" height="32" alt="leftside orange navbar" style="text-align:left;" />
<ul id="navmenu">
<li><a href="#app.webroot#">Home</a></li>
<li><a href="#app.webroot#about">About Us</a></li>
<li><a href="#app.webroot#mgr">Account Manager</a></li>
<li><a href="#app.webroot#contact">Contact Us</a></li>
</ul>
<img src="assets/img/nav_ong_rgt.gif" width="4" height="32" alt="rightside orange navbar" style="text-align:right;" />
</div>
</div>