473,414 Members | 1,764 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,414 software developers and data experts.

DHTML menu hidden by DIV in IE

25
Hi,
I am trying to implement a DHTML nav menu and I'm having a problem in IE8.

The page basically has 2 content areas in DIV tags. The menu is in the 1st DIV on the left and the page content is in the main DIV on the right.

The problem is that when the menu expands on mouseover it goes under the content area to its right. (Only happens in IE.)

Any suggestions on how I can send the content area DIV ("content-zone") to the back so that the menu displays properly? I'm assuming it has something to do with the Z-Index property.

The "PLVFOaASHHVADiv" and its contents are being generated using a 3rd party tool (whose tech support hasn't been very helpful). Haven't been able put the menu on top by changing its settings, so I'm focussing on pushing the other DIV back instead.
Attached is the HTML along with the javascript file it uses for the menu.

Thanks.

P.S. Here is the code inline.

HTML:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>blah blah</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta http-equiv='expires' content='0'><meta http-equiv='pragma' content='no-cache'> 
  7. <meta http-equiv="X-UA-Compatible" content="IE-7">
  8.  
  9. <style type="text/css">
  10. <!--
  11. /* from colors.css */
  12. #borderTopColor                    {border-top:5px solid #B24700;}
  13. #color                            {color:#B24700;}
  14. #tableborderline                {border-collapse: collapse;border-color:#B24700;}
  15. #tblbgColor                        {background-color:#B24700;}
  16.  
  17. /* from page-layout.css */
  18. body{
  19.  margin: 0;
  20.  padding:0;
  21.  background: #1A50B8; /* goes w/dblue.css */
  22.  color: #333333;
  23.  }
  24.  
  25. #hdr{
  26.  height:130px;
  27.  background:#ffffff; 
  28.  color:#000000;
  29.  border:solid #000000;
  30.  border-width:2px 0px;
  31.  margin:5px 0 0 0;
  32.  text-align:center; }
  33.  
  34. #lh-col{
  35.  position: absolute;
  36.  top: 150px;
  37.  left: 10px;
  38.  width: 180px;
  39. /* border: 2px solid #000000;
  40.  background: #c0c0c0;
  41.  color: #333333;*/
  42.  margin: 0px;
  43.  padding: 0px;
  44.  height: 400px;
  45.  }
  46.  
  47. #content-zone{
  48.  margin: 20px 20px 20px 140px; 
  49.  border: 2px solid #000000;
  50.  background: #ffffff;
  51.  color: #333333;
  52.  padding: 20px;
  53.  position :relative;
  54.  z-index: inherit
  55.  }
  56. -->
  57. </style>
  58.  
  59. </head>
  60. <body>
  61.  
  62. <!-- beg HEADER --><div id="hdr">[SNIPPED]</div><!-- end HEADER area -->
  63. <!-- beg NAV --><div id="lh-col">
  64. <div id="PLVFOaASHHVADiv" style="width:125px;position:relative;z-index:50;">
  65. <div>
  66.   <ul style="float:left;margin:0;padding:2px;width:119px;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;border:solid 1px #000000;background-color:#7FBAFF;">
  67.     <li style="display:block;float:left;width:117px;height:17px;text-align:left;border:solid 1px #7FBAFF;"><a style="display:block;padding:2px 6px 0px 6px;text-decoration:none;color:#000000;" href="#">A</a></li>
  68.     <li style="display:block;float:left;width:117px;height:17px;margin-top:0px;text-align:left;border:solid 1px #7FBAFF;"><a style="display:block;padding:2px 6px 0px 6px;text-decoration:none;color:#000000;" href="#">B</a></li>
  69.     <li style="display:block;float:left;width:117px;height:17px;margin-top:0px;text-align:left;border:solid 1px #7FBAFF;background: url(Pluginlab/fo_arrow.gif) no-repeat 110px 50%;"><a style="display:block;padding:2px 13px 0px 6px;text-decoration:none;color:#000000;" href="#">C</a></li></ul></div><script type="text/javascript" src="PLVFO5.js">/* PLVFOMenu script ID:PLVFOaASHHVA */</script>
  70. </div>
  71. </div><!--PLVFOYaLFHVADiv-->
  72. <br/>
  73. <!-- end NAV area -->
  74. <div id="content-zone">
  75.  
  76. <p>blah blah</p>
  77.  
  78.  
  79.  
  80. <p>&nbsp;</p>
  81. </div><!--content-zone-->    
  82. </body>
  83. </html>
  84.  
Attached Files
File Type: txt Bytes-question.html.txt (2.6 KB, 379 views)
Jul 16 '10 #1
1 1966
svendok
25
I figured it out. The container surrounding the DHTML code (in this case, "lh-col") needs to have a higher z-index value than the other DIV (in this case "content-zone").
Jul 16 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jason | last post by:
I have a client that would like to have drop down menus added to a nav bar that is generated from MySQL. Is it possible to have a dynamically driven DHTML menu from MySQL? example link...
2
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called "main" The code is below: Thanks in advance...
2
by: Alexander Stuckenholz | last post by:
Hello. I have a problem with the dhtml-menu from http://www.brainjar.com/. Everything works fine with IE so far. But if i use the menu with firefox the menu opens, but if i move the mouse...
2
by: Ilpo | last post by:
Hi! Is it possible to open DHTML menu from a select box option? I need a select box which shows a new sub-menu when pointing the mouse over an option. Does anyone know is this possible? The...
1
by: Davidson | last post by:
Could someone advises me some good books or information about DHTML menu? Thanks in advance.
5
by: Sura | last post by:
Hi I have designed a simple DHTML menu which comes over a flash animation when it appears. I have set the window mode as transparent in the flash project. This menu is showing fine when seen...
0
by: news.msdn.com | last post by:
Hi, I have the following requirement. I need to create a DHTML menu control in ASP.NET For that these are the specs provided. 1) I have store the structure of the menu system in a...
1
by: singmadhan | last post by:
Hi Frnds, I am working in an ASP.Net Application and creating a DHTML menu using JavaScript. There is a drop down list box below the menu, when ever I am dragging the menu the DropDownList box...
2
by: warrenf | last post by:
Greetings, I have been muddling my way through developing a DHTML menu. I finally have something workable. My problem now is that I have implemented my menus in a DIV that overlaps my 'master'...
1
by: ashokc | last post by:
Under Linux DHTML menu going behind flash animation. I have set the <param name="WMODE" value="transparent">. This menu is showing fine when i test under Windows systems with IE, Firefox. Yet in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.