Forum Moderators: not2easy

Message Too Old, No Replies

jquery menu ok in IE, not in firefox

Firefox is applying a 25px offset to the right

         

bbcompent1

2:39 pm on Dec 31, 2009 (gmt 0)

10+ Year Member



Hello everyone, good to be here. I'm trying to utilize a menu that I found on dynamic drive for my menu structure. In IE, it looks perfect but in Firefox, it has this offset that is driving me crazy. I have been debugging this for about a day now and I have very little hair left. Can someone help me please?

Here is my beta site: <snip>

The original menu: [dynamicdrive.com...]

My CSS is as follows (-moz is for mozilla compat � !important is supposed to be for IE):

.droplinebar{
overflow: hidden;
}

.droplinebar ul{
-moz-width: 700px;
-moz-margin: 0;
width: 700px !important;
margin-left:7px !important;
width: 700px;
margin: 0;
font: bold 12px Verdana;
background: transparent; /*default background of menu bar*/
}

.droplinebar ul li{
display: inline;
}

.droplinebar ul li a{
float: left;
color: white;
-moz-padding: 9px 11px;
padding: 19px 9px 11px 20px !important;
padding: 9px 11px;
text-decoration: none;
}

.droplinebar ul li a:visited{
color: white;
}

.droplinebar ul li a:hover, .droplinebar ul li .current{ /*background of main menu bar links onMouseover*/
color: white;
background: #333333;
}

/* Sub level menus*/
.droplinebar ul li ul{
position: absolute;
z-index: 100;
left: 0;
top: 0;
background: #818284; /*sub menu background color */
visibility: hidden;
}

/* Sub level menu links style */
.droplinebar ul li ul li a{
font: bold 11px Verdana;
padding: 12px;
padding-right: 8px;
margin: 0;
}

.droplinebar ul li ul li a:hover{ /*sub menu links' background color onMouseover */
background: #333333;
}

Here is my menu system:
<head>
<link rel="stylesheet" type="text/css" href="CSS/droplinebar.css" />
<script type="text/javascript" src="script/jquery.min.js"></script>
<script src="script/droplinemenu.js" type="text/javascript"></script>
<script type="text/javascript">
//build menu with DIV ID="myslidemenu" on page:
droplinemenu.buildmenu("mydroplinemenu")
</script>
<script src="script/rollover.js" type="text/javascript"></script>
</head>
<div style="position:absolute; left: 9px; top: 31px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../community.asp" class="MainHeaderNav" onMouseover="showhint('Connect with your eVANHEE Community and get involved!', this, event, '300px')">Community</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../shopping.asp" class="MainHeaderNav" onMouseover="showhint('Browse our line of products to maintain your system', this, event, '300px')">Shopping Tools</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../finance.asp" class="MainHeaderNav" onMouseover="showhint('Your system can fit your budget. Ask us how by checking out our easy financing options by contacting us today!', this, event, '300px')">Financial Services</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://my.evanhee.com" class="MainHeaderNav" onMouseover="showhint('Access or sign up for your My eVANHEE Account today!', this, event, '300px')">My Account</a></span></div><div style="position:absolute; left: 545px; top: 28px;">
<table height="33" border=0>
<tr><td height="31" valign="top"><form action="../search/search.asp" method="get" onsubmit="return isSearchTermValid( this );">
<input type="text" name="searchTerm" size="20" maxlength="35" value="">
&nbsp;<input type="submit" name="Submit" value="Search" style="font:Verdana; font-size:10px;">
</form></td>
</tr>
</table></div>
<br>
<div id="mydroplinemenu" class="droplinebar">
<ul>
<li><a href="../default.asp">Home</a></li>
<li><a href="../solar.asp">Solar</a>
<ul>
<li><a href="#"><img src="../images/menu/evactube.jpg" width="25" height="25" border="0">&nbsp;Evacuated Tubes</a></li>
<li><a href="#"><img src="../images/menu/paneltube.gif" width="25" height="25" border="0">&nbsp;Panel Tubes</a></li>
<li><a href="#"><img src="../images/menu/solarelec.jpg" width="25" height="25" border="0">&nbsp;Solar Electric</a></li>
</ul>
</li>
<li><a href="../geothermal.asp">Geothermal</a>
<ul>
<li><a href="#"><img src="../images/menu/geoforcedair.jpg" width="25" height="25" border="0">&nbsp;Forced Air</a></li>
<li><a href="#"><img src="../images/menu/georadiant.jpg" width="25" height="25" border="0">&nbsp;Radiant Boiler</a></li>
<li><a href="#"><img src="../images/menu/geocombo.jpg" width="25" height="25" border="0">&nbsp;Combination</a></li>
<li><a href="#"><img src="../images/blank.gif" width="25" height="25" border="0">&nbsp;Why Geothermal?</a></li>
</ul>
</li>
<li><a href="../wind.asp">Wind</a>
<ul>
<li><a href="#"><img src="../images/menu/windturbine.jpg" width="25" height="25" border="0">&nbsp;Wind Turbines</a></li>
<li><a href="#"><img src="../images/blank.gif" width="25" height="25" border="0">&nbsp;Why Wind Power?</a></li>
</ul>
</li>
<li><a href="../hybrid.asp">Hybrid</a></li>
<li><a href="../support.asp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Support</a>
<ul>
<li><a href="support.asp"><img src="../images/menu/prodsup.jpg" width="25" height="25" border="0">&nbsp;Product Support</a>
<ul>
<li><a href="support.asp">Protect It</a></li>
<li><a href="support.asp">Use It</a></li>
<li><a href="support.asp">Maintain It</a></li>
</ul>
</li>
<li><a href="support.asp"><img src="../images/menu/ordersup.jpg" width="25" height="25" border="0">&nbsp;Order Support</a></li>
<li><a href="contact_us.asp"><img src="../images/menu/contactus.jpg" width="25" height="25" border="0">&nbsp;Contact Us</a></li>
</ul>
</li>
<li><a href="../experience.asp">&nbsp;&nbsp;&nbsp;Experience</a>
<ul>
<li><a href=""><img src="../images/menu/eneraudit.jpg" width="25" height="25" border="0">&nbsp;Energy Audits</a></li>
<li><a href=""><img src="../images/menu/deseng.jpg" width="25" height="25" border="0">&nbsp;Design Engineering</a></li>
<li><a href=""><img src="../images/menu/loopinst.jpg" width="25" height="25" border="0">&nbsp;Loop Installation</a></li>
<li><a href=""><img src="../images/menu/sysinst.jpg" width="25" height="25" border="0">&nbsp;System Installation</a></li>
</ul>
</li>
</ul></li>
</div>

--

No URL's please, see TOS [webmasterworld.com]

[edited by: limbo at 2:17 pm (utc) on Jan. 1, 2010]

limbo

10:18 am on Jan 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi bbcompent1

Welcome to WebmasterWorld :)

First thing to ask, is whether you are using a CSS reset? Worth validating your HTML/CSS too. A misfire in the CSS can often be indicated by layout issues in FF. Lastly ensure you work FF to IE not the other way round. Best to develop sites in a web standards compliant browser and debug the CSS/JS/HTML in IE.

bbcompent1

8:32 pm on Jan 11, 2010 (gmt 0)

10+ Year Member



I did get that one problem fixed, however now I have a different issue. In Firefox, my div position declarations seem to be ignored. I have my DIV tags set with absolute positioning but it seems Firefox is ignoring that. Is there a reason why? Do I need to do something special for it? Also, when I do mouse roll overs, Firefox ignores the code. Here is a link to it so you can see what I'm talking about.

brewerton.getmyip.com

I'm beginning to see that there are some distinct differences with how different browsers can interpret the same line or just ignore them altogether. Thanks :)

bbcompent1

8:33 pm on Jan 11, 2010 (gmt 0)

10+ Year Member



By the way, what is a CSS Reset? Sorry but I've never heard of that term before...just being honest.