473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

help with css in Internet Explorer

First let me thank you in advance for any help you can provide. I have a
left hand navigation (nav) menu in a div tag. The menu has a few links that
are actually javascript that display hidden submenu links. The code will be
below.

This error is happening in IE only - when you click on a link that displays
hidden submenu links, it makes the entire nav bar wider. I have tried to
troubleshoot with no luck so far so I humbly come to you for help.

Here's a code snippet that is already within a <ultag:

HTML Code:
<li><a href="#" onclick="javascript:showElement('menu1')">Start
Here</a></li>
<li id="menu1" style="display:none">
<ul>
<li style="width: 100px;"><a href="menu1.php">Menu 1</a></li>
<li><a href="register.php">Register</a></li>
<li><a href="termsofuse.php">Terms</a></li>
</ul>
</li>
Here is the firebug readout of that element:
..nav li
border-bottom:1px solid #90BADE;
width:200px;
}
Inherited fromul.nav
..nav
color:#22C3FF;
font-size:0.8em;
list-style-type:none;
text-decoration:none;
}
Inherited fromdiv#leftMenu
#leftMenu
font-family:Verdana,Arial,Helvetica,sans-serif;
}

As I said, when you click on "Start Here", it calls a javascript that
changes <li id="menu1"to be visible. That works fine. But the error is
that the submenu, in fact all the menu items are wider than before you
clicked on "Start Here." When you click "Start Here" again, the submenu
disappears and the width goes back to what was intended.

Please let me know if you need anything else to help diagnose.

Many thanks for your help!
Jun 27 '08 #1
1 1407
TriAdmin wrote:
As I said, when you click on "Start Here", it calls a javascript that
changes <li id="menu1"to be visible. That works fine.
...for some value of "fine." What about the 10% or so who have
JavaScript unavailable, disabled, or stripped by a corporate firewall?
Whoops, no menu.

Post the URL to the page, instead of these code fragments.

Don't use Verdana.

--
-bts
-Friends don't let friends drive Vista
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: zheetee | last post by:
i am a XML beginner..... i know that we can put CData to preserve the space between character in XML.so when u open the xml file by using Internet Explorer, everything will displayed correctly...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
1
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
2
by: Husam | last post by:
Hi EveryBody: I have the following code which just helpfull with Notepad: Code: <DllImport("user32", CharSet:=CharSet.Auto, SetLastError:=True)> _ Public Shared Function FindWindow(ByVal...
0
by: jonipony | last post by:
HELP: Float Left box is drifting to the right in ie! -------------------------- I need som HELP with my CSS coding! On the following web page my design falls apart at screen size 800 x 600...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
4
by: Andrew Bailey | last post by:
Hi, Thanks for taking the time to read this. I would be very grateful if you are able to help me solve the two problems below... PROBLEM 1: I spent a lot of time finding code that would...
1
by: =?Utf-8?B?bmVlYm8xMTI=?= | last post by:
I started getting an error message when trying to download ANYTHING updates, torrents etc...The text is as follows: Internet Explorer cannot download...<<Whatever the download is >> Internet...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.