Forum Moderators: not2easy
Sample HTML menu:
<div id="menu">
<ul>
<li><a href="index-try.html">Home</a></li><!--replace with correct URL once finished-->
<li><a href="appointments.html">Appointments</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="prices.html">Prices</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
================ sample css for menu=================
#menu {
float:left;
width:100%;
height:50px;
margin:0;
padding:0;
background:url(images/nav-bgnd.png) no-repeat;
}
#menu ul {
margin: 0px;
padding: 0px;
color: #FFF;
line-height: 30px;
white-space: nowrap;
}
#menu li {
list-style-type:none;
display:inline;
}
#menu li a {
color:#FFF;
margin-top:2px;
padding:9px 42px 9px 42px;
float:left;
width:auto;
border-left:1px solid #d21f7b; /*change color*/
}
#menu li a:hover {
text-decoration:none;
background:none;
}
#menu li:first-child a {
border-left:0;
}
Any help welcome, cheers
geoffb
In Internet Explorer 7 some SGML constructs, such as comments, are counted as elements.
Internet Explorer 7, Firefox versions up to and including 2, Safari versions up to and including 3, and Opera 9.2 continue to select an element as the first child even when another element is dynamically inserted before it.
Internet Explorer 7 and Firefox select the first SGML construct on the page (usually the doctype), even though it’s not a child of another element.