hlj71
03-25-2009, 09:48 AM
Hi! I am having some issues getting the horizontal layout of the CSS dropdown menu to work in Firefox. It seems to push the last image to the next row. I've tried using the !important note in the CSS file to get Firefox to read the style, but not IE, but that's not working. IE still sees it. The menu lays out correctly in IE. If I can get some help on why Firefox is displaying the top, right menu differently than IE, I would really appreciate it!!! I have been trying to get this fixed for days now.
Here is a link to the site I am working on: http://www.aahanet.org/aahalongbeach2010/
Here is the CSS code for the top, right navigation:
#menu1 {
display:block;
z-index: 10;
}
#nav1{
margin: 0px;
}
#menu1>#nav{
margin:0px -40px;/* hack for gecko browsers -- makes menu sit flush*/
}
#nav1 ul {
z-index:10;
list-style: none;
padding: 0px 0px;
margin: 0;
}
#nav1 li#aahahome {
list-style: none;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
padding-top:9px;
float: left;
height:21px;
width:112px;
text-align: Center;
background-image:url(../graphics/menu1_left_bkgd.gif);
background-position:bottom;
color:#000;
z-index:10;
}
#nav1 li#tabs {
list-style: none;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
padding-top:9px;
float: left;
height:21px;
width: 112px;
text-align: Center;
background-image:url(../graphics/menu1_bkgd.gif);
background-position:bottom;
color:#000;
z-index:10;
}
#nav1 li#media {
list-style: none;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
padding-top:9px;
float: left;
height:21px;
width: 111px;
text-align: Center;
background-image:url(../graphics/menu1_bkgd.gif);
background-position:bottom;
color:#000;
z-index:10;
border-right:1px solid #54301a;
}
#nav1 a {
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
color: #000;
text-decoration: none;
}
#nav1 a:hover {
color: #fff884;
text-decoration: none;
}
#nav1 li li a { /* color behind dd non hover state */
display: block;
}
#nav1 li li a:hover { /* color behind dd hover state */
color:#eddcb5;
border:none;
}
#nav1 .fixalign {
padding-top: 3px;
text-align:center;
vertical-align:bottom;
}
#nav1 .fixalign2 {
padding-top: 3px;
}
#nav1 li ul { /* subnavigation */
display: none;
position: relative;
top: 100%;
left: 0;
margin-top:9px;
font-weight: normal;
background: url(../graphics/ddbkgd1.gif) bottom left no-repeat;
}
#nav1 li>ul {
top: auto;
left: auto;
}
#nav1 li li {
display: block;
float: none;
background-color: transparent;
border: 0;
}
#nav1 li:hover ul, #nav li.over ul { /* CSS that triggers the drop down effect IE and Gecko style browsers */
display: block;
}
#nav1 li:hover a, #nav li.over a{ /*Controls the color of the links in the dd */
color: #000;
}
Thank you!!
Here is a link to the site I am working on: http://www.aahanet.org/aahalongbeach2010/
Here is the CSS code for the top, right navigation:
#menu1 {
display:block;
z-index: 10;
}
#nav1{
margin: 0px;
}
#menu1>#nav{
margin:0px -40px;/* hack for gecko browsers -- makes menu sit flush*/
}
#nav1 ul {
z-index:10;
list-style: none;
padding: 0px 0px;
margin: 0;
}
#nav1 li#aahahome {
list-style: none;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
padding-top:9px;
float: left;
height:21px;
width:112px;
text-align: Center;
background-image:url(../graphics/menu1_left_bkgd.gif);
background-position:bottom;
color:#000;
z-index:10;
}
#nav1 li#tabs {
list-style: none;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
padding-top:9px;
float: left;
height:21px;
width: 112px;
text-align: Center;
background-image:url(../graphics/menu1_bkgd.gif);
background-position:bottom;
color:#000;
z-index:10;
}
#nav1 li#media {
list-style: none;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
padding-top:9px;
float: left;
height:21px;
width: 111px;
text-align: Center;
background-image:url(../graphics/menu1_bkgd.gif);
background-position:bottom;
color:#000;
z-index:10;
border-right:1px solid #54301a;
}
#nav1 a {
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:10px;
color: #000;
text-decoration: none;
}
#nav1 a:hover {
color: #fff884;
text-decoration: none;
}
#nav1 li li a { /* color behind dd non hover state */
display: block;
}
#nav1 li li a:hover { /* color behind dd hover state */
color:#eddcb5;
border:none;
}
#nav1 .fixalign {
padding-top: 3px;
text-align:center;
vertical-align:bottom;
}
#nav1 .fixalign2 {
padding-top: 3px;
}
#nav1 li ul { /* subnavigation */
display: none;
position: relative;
top: 100%;
left: 0;
margin-top:9px;
font-weight: normal;
background: url(../graphics/ddbkgd1.gif) bottom left no-repeat;
}
#nav1 li>ul {
top: auto;
left: auto;
}
#nav1 li li {
display: block;
float: none;
background-color: transparent;
border: 0;
}
#nav1 li:hover ul, #nav li.over ul { /* CSS that triggers the drop down effect IE and Gecko style browsers */
display: block;
}
#nav1 li:hover a, #nav li.over a{ /*Controls the color of the links in the dd */
color: #000;
}
Thank you!!