grahamarrowsmith
Technical User
I've been working on a css navbar with usual rollover buttons. Looks great in IE but when I vew in a mozilla browser it clumps all the div buttons together over each other.
Am I missing a trick or will I need to re-write my css for compatability? Any tips would be appreciated.
This is the site:
and my HTML code is like this:
<div id="mainnav"><a href="sections/about.htm">About <br> Duncan Property</a><a href="sections/services.htm"><br> Property Services</a><a href="sections/landlords.htm">Information for <br> Landlords</a><a href="sections/tennants.htm" class="last">Information for<br> Tennants</a></div></td>
and CSS:
/* this is the container for all my buttons */
#mainnav {
padding: 0 0 0 0;
margin-top:2px;
margin-bottom:2px;
font-family: 'Trebuchet MS', 'Lucida Grande',
Verdana, Lucida, Geneva, Helvetica, Arial, sans-serif;
font-size:9pt;
line-height:1em;
background-color: #FFFFFF;
color: #333;
}
/* this is a button*/
#mainnav a {
/*display: block;*/
padding: 4px 4px 4px 4px;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
border-top: 1px solid #000000;
background-color: #010641;
color: #fff;
text-decoration: none;
width: 155px;
margin-right:4px;
}
Thanks,
Graham
Am I missing a trick or will I need to re-write my css for compatability? Any tips would be appreciated.
This is the site:
and my HTML code is like this:
<div id="mainnav"><a href="sections/about.htm">About <br> Duncan Property</a><a href="sections/services.htm"><br> Property Services</a><a href="sections/landlords.htm">Information for <br> Landlords</a><a href="sections/tennants.htm" class="last">Information for<br> Tennants</a></div></td>
and CSS:
/* this is the container for all my buttons */
#mainnav {
padding: 0 0 0 0;
margin-top:2px;
margin-bottom:2px;
font-family: 'Trebuchet MS', 'Lucida Grande',
Verdana, Lucida, Geneva, Helvetica, Arial, sans-serif;
font-size:9pt;
line-height:1em;
background-color: #FFFFFF;
color: #333;
}
/* this is a button*/
#mainnav a {
/*display: block;*/
padding: 4px 4px 4px 4px;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
border-top: 1px solid #000000;
background-color: #010641;
color: #fff;
text-decoration: none;
width: 155px;
margin-right:4px;
}
Thanks,
Graham