Hi guys,
Urgengly need your help! I recently added the "PVII Menu CSS Express Drop-Down Menu" by Project Seven Development to a website. It works perfectly in almost all browsers, however, the orignal menu had one single dropdown level, however i needed to add an extra level, so now it is multi-level(x3).
It works lovely, however the client is using IE6 and noticed that the dropdowns are not functioning correctly. Of course they refuse to upgrade so im stuck with the problem!
I've been tearing my hear out trying to find a fix but can't. I was wondering if anyone could take a quick look and let me know if they can help... PLEASE....
My HTML code below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <HEAD> <TITLE>ISSP</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="styles.css"> <link href="p7exp.css" rel="stylesheet" type="text/css"> <link href="p7exp.js" rel="stylesheet" type="text/javascript"> <style type="text/css"> <!-- .style1 {color: #C0C0C0} .style2 {color: #666666} body { background-color: #C0C0C0; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script type="text/javascript" src="p7exp.js"></script> <!--[if lte IE 7]> <style> #menuwrapper,#p7menubar ul a {height: 1%;} a:active {width: auto;} </style> <![endif]--> </HEAD> <body onLoad="P7_ExpMenu()"> <table width="50%" border="0" align="center"> <tr> <td><TABLE WIDTH=850 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD><IMG SRC="images/issp_01.jpg" WIDTH=43 HEIGHT=52 ALT=""></TD> <TD colspan="7" align="left" valign="top"><img src="images/top_red_banner.gif" width="766" height="52"></TD> <TD><IMG SRC="images/issp_09.jpg" WIDTH=41 HEIGHT=52 ALT=""></TD> </TR> <TR> <TD><IMG SRC="images/issp_10.jpg" WIDTH=43 HEIGHT=245 ALT=""></TD> <TD colspan="7" align="left" valign="top"><img src="images/home_banner.jpg" alt="Banner" width="766" height="245"></TD> <TD><IMG SRC="images/issp_18.jpg" WIDTH=41 HEIGHT=245 ALT=""></TD> </TR> <TR> <TD><IMG SRC="images/issp_19.jpg" WIDTH=43 HEIGHT=56 ALT=""></TD> <TD colspan="7" bgcolor="#FFFFFF"> <!-- start of menu --> <div id="menuwrapper"> <ul id="p7menubar"> <li><a href="#">Home</a></li> <li><a class="trigger" href="#">Partners</a></li> <li><a class="trigger" >Programmes</a> <ul> <li><a>NUI Maynooth</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>NUI Galway</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>University College Cork</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>University of Limerick</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>Dublin City University</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>Queens University Belfast</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>Institute of Technology Sligo</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> <li><a>Mary Immaculate College</a> <ul> <li><a href="#">First Semester</a></li> <li><a href="#">Second Semester</a></li> </ul> </li> </ul> </li> <li><a class="trigger" href="#">Research</a></li> <li><a class="trigger" >Events</a> <ul> <li><a href="#">NUI Maynooth</a></li> <li><a href="#">NUI Galway</a></li> <li><a href="#">University College Cork</a></li> <li><a href="#">University of Limerick</a></li> <li><a href="#">Dublin City University</a></li> <li><a href="#">Queens University Belfast</a></li> <li><a href="#">Institute of Technology Sligo</a></li> <li><a href="#">Mary Immaculate College</a></li> </ul> </li> <li><a class="trigger" >Newsletters</a> <ul> <li><a>2009</a> <ul> <li><a href="#">January</a></li> <li><a href="#">Febuary</a></li> <li><a href="#">March</a></li> <li><a href="#">April</a></li> <li><a href="#">May</a></li> </ul> </li> <li><a>2008</a></li> </ul> </li> <li><a class="trigger" href="#">Opportunities</a></li> <li><a class="trigger" href="#">Contact</a> <ul> <li><a href="#">NUI Maynooth</a></li> <li><a href="#">NUI Galway</a></li> <li><a href="#">University College Cork</a></li> <li><a href="#">University of Limerick</a></li> <li><a href="#">Dublin City University</a></li> <li><a href="#">Queens University Belfast</a></li> <li><a href="#">Institute of Technology Sligo</a></li> <li><a href="#">Mary Immaculate College</a></li> </ul> </li> </ul> <br class="clearit" /> </div> <!-- end of menu --> </TD> <TD><IMG SRC="images/issp_27.jpg" WIDTH=41 HEIGHT=56 ALT=""></TD> </TR> <TR> <TD><IMG SRC="images/issp_28.jpg" WIDTH=43 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_29.jpg" WIDTH=112 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_30.jpg" WIDTH=111 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_31.jpg" WIDTH=18 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_32.jpg" WIDTH=131 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_33.jpg" WIDTH=138 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_34.jpg" WIDTH=113 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_35.jpg" WIDTH=143 HEIGHT=27 ALT=""></TD> <TD><IMG SRC="images/issp_36.jpg" WIDTH=41 HEIGHT=27 ALT=""></TD> </TR> <TR> <TD bgcolor="#FFFFFF"><IMG SRC="images/issp_37.jpg" WIDTH=43 HEIGHT=426 ALT=""></TD> <TD colspan="2" align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0"> <tr> <td height="61" align="center" valign="middle" bgcolor="#E8E7E5"><img src="images/recent_news_events.gif" width="217" height="36" /> <table width="87%" border="0" align="center"> <tr> <td height="152" align="left" valign="middle"><p> <script type="text/javascript"> var iframesrc="external.htm" document.write('<iframe id="datamain" src="'+iframesrc+'" width="172px" height="130px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>') </script></p></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td height="186" align="left" valign="top" bgcolor="#E8E7E5"><img src="images/prospectus_download.gif" width="217" height="35" /> <table width="82%" border="0" align="center"> <tr> <td align="left" valign="top"><div align="center"><a href="ISSP_Brochure.pdf" target="_blank"><img src="images/brochure2.jpg" alt="ISSP Brochure" width="172" height="108" border="0" /></a></div></td> </tr> <tr> <td><p align="center"><a href="ISSP_Brochure.pdf" target="_blank">Download</a> ISSP Brochure</p></td> </tr> </table></td> </tr> </table></TD> <TD bgcolor="#FFFFFF"> </TD> <TD colspan="4" align="left" valign="top" bgcolor="#FFFFFF"><img src="images/welcome_banner.gif" alt="Welcome to ISSP at NUI Galway" height="59"> <table width="95%" border="0" align="center"> <tr> <td><p align="justify">“<strong>ISSP is an all-island platform of integrated social science research and graduate training</strong> focusing on the social, cultural and economic transformations shaping Ireland in the 21st century.” <br> <br> The Irish Social Sciences Platform (ISSP) brings together academics from 19 disciplines in 8 institutions across the island into a common programme of research centered on knowledge, innovation, society and space. ISSP will focus its efforts on investigating three broad themes of national importance – creating balanced development, sustaining communities and building the knowledge economy. <BR> <BR> A key objective for ISSP researchers is to take an active role in key social, economic and cultural policy debates in the effort to sustain the Tiger economy that presently seems to have lost its roar. To that end it will work closely with local communities, voluntary and semi-state agencies, and local and national government in tackling critical issues and building a prosperous future for the whole island...<a href="research.html">more information</a></p></td> </tr> </table></TD> <TD bgcolor="#FFFFFF"><IMG SRC="images/issp_45.jpg" WIDTH=41 HEIGHT=426 ALT=""></TD> </TR> <TR> <TD bgcolor="#FFFFFF"><IMG SRC="images/issp_46.jpg" WIDTH=43 HEIGHT=94 ALT=""></TD> <TD colspan="7" align="left" valign="top" bgcolor="#FFFFFF"><img src="images/logos3.gif" alt="NUI Galway" width="766" height="59" vspace="10" border="0" usemap="#MapMap" href="http://www.nuigalway.ie" /> <map name="MapMap" id="MapMap"> <area shape="rect" coords="545,0,606,58" href="http://www.dcu.ie/" target="_blank" alt="Dublin City University" /> <area shape="rect" coords="616,1,718,58" href="http://www.qub.ac.uk/" target="_blank" alt="Queens University Belfast" /> <area shape="rect" coords="723,2,773,55" href="http://www.itsligo.ie/" target="_blank" alt="Sligo Institute of Technology" /> <area shape="rect" coords="246,2,360,67" href="http://www.ul.ie/" target="_blank" alt="University of Limerick" /> <area shape="rect" coords="371,6,427,62" href="http://www.mic.ul.ie/" target="_blank" alt="Mary Immaculate College Limerick" /> <area shape="rect" coords="-17,-3,80,76" href="http://www.nuim.ie/" target="_blank" alt="NUI Maynooth" /> <area shape="rect" coords="441,13,535,65" href="http://www.ucc.ie/en/" target="_blank" alt="University College Cork" /> <area shape="rect" coords="97,-1,231,67" href="http://www.nuigalway.ie" target="_blank" alt="NUI Galway" /> </map> <map name="MapMap" id="MapMap"> <area shape="rect" coords="528,17,591,75" href="http://www.dcu.ie/" target="_blank" alt="Dublin City University" /> <area shape="rect" coords="605,19,707,76" href="http://www.qub.ac.uk/" target="_blank" alt="Queens University Belfast" /> <area shape="rect" coords="717,23,767,76" href="http://www.itsligo.ie/" target="_blank" alt="Sligo Institute of Technology" /> <area shape="rect" coords="287,10,404,79" href="http://www.ul.ie/" target="_blank" alt="University of Limerick" /> <area shape="rect" coords="-14,-2,97,77" href="http://www.nuim.ie/" target="_blank" alt="NUI Maynooth" /> <area shape="rect" coords="415,16,515,77" href="http://www.ucc.ie/en/" target="_blank" alt="University College Cork" /> <area shape="rect" coords="122,11,270,80" href="http://www.nuigalway.ie" target="_blank" alt="NUI Galway" /> </map> <img src="images/logos2.gif" alt="NUI Galway" width="766" height="94" vspace="10" border="0" usemap="#Map" href="http://www.nuigalway.ie"></TD> <TD bgcolor="#FFFFFF"><IMG SRC="images/issp_54.jpg" WIDTH=41 HEIGHT=94 ALT=""></TD> </TR> </TABLE></td> </tr> <tr> <td height="40" valign="middle" bgcolor="#C0C0C0"><table width="92%" height="42" border="0" align="center"> <tr> <td height="38" valign="middle"><P class="white"><span class="style2">Copyright © ISSP 2008. All rights reserved.</span><span class="style1">!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span><span class="style2">Design <a href="http://www.little.ie" target="_blank">Little Studio </a></span></p> </td> </tr> </table></td> </tr> </table> <!-- End ImageReady Slices --> <map name="Map" id="Map"><area shape="rect" coords="123,14,220,81" href="http://europa.eu/" target="_blank" alt="European Union" /> <area shape="rect" coords="267,18,374,79" href="http://www.education.ie/" target="_blank" alt="Department of Education & Science" /> <area shape="rect" coords="422,18,552,80" href="http://www.hea.ie/" target="_blank" alt="Higher Education Authority" /> <area shape="rect" coords="589,15,753,84" href="http://www.ndp.ie/" target="_blank" alt="National Development Plan" /> </map> </BODY> </HTML>
CSS code:
/* ------------------------------------ PVII Menu CSS Express Drop-Down Menu by Project Seven Development <a href="http://www.projectseven.com" rel="nofollow">www.projectseven.com</a> ------------------------------------ */ body { font-family:"Georgia", "Trebuchet MS", Arial, sans-serif; font-size: 100%; background-color: #FFFFFF; margin: 0px 0; padding: 0; /*background-image: url(images/p7exp_pbg.jpg);*/ background-repeat: repeat-x; } /* Container for the menu. We set top and bottom borders only because the menu container stretches the entire window width. Note that this container can go inside a fixed width element that is centered on the page, if you so desire. It can even go inside a table cell. It carries a background image for aesthetics. */ #menuwrapper { border-top: 0px solid #000; border-bottom: 0px solid #333; background-color: #909090; background-image: url(images/menu_bg.jpg); background-repeat: repeat-x; } /*Clears the floated menu items. Assigned to a BR tag placed just before menuwrapper's closing DIV tag*/ .clearit { clear: both; height: 0; line-height: 0.0; font-size: 0; } /* p7menubar is the root UL and p7menubar ul applies to all the sub-menu ULs. We set padding and margin to zero to eliminate all indentation, turn bullets off, and set a font-family different from the global font-family declared for the body element above. This sets font for just the menu. Do not add a font-size here. */ #p7menubar, #p7menubar ul { padding: 0; margin: 0; list-style: none; font-family: Arial, Helvetica, sans-serif; font-size:15px; } /* Root-Level Links. Do not change the first two properties. Adjust padding values to make the root links taller and to offset them from the left and right edges of the link box. The border right creates a separator between links. Font-size is set here and will apply to all menu levels. Font color is set to light gray. */ #p7menubar a { display: block; text-decoration: none; padding: 20px 19px 20px 18px; border-right:1px dotted #0096da; font-size: .85em; color: #ffffff; } /* Class assigned to those Root-Level links that have associated Sub-Menus. The top and bottom padding assigned this element must be the same as that assigned to the p7menubar a element. The right padding is increased to accomodate the display of background image depicting a downward pointing arrow. */ #p7menubar a.trigger { padding: 20px 20px 20px 20px; /*background-image: url(images/p7PM_dark_south.gif);*/ background-repeat: no-repeat; background-position: right center; } /* The Root-Level list items. Floating left allows them to appear horizontally. Width is for IE5 Mac. The last rule in this style sheet will set the width for this element to auto for all other browsers - hiding it from IE5 Mac. The width is proportional. As you add and edit root menu items, you will need to test this width to ensure it is wide enough to accomodate all text. */ #p7menubar li { float: left; width: 9em; } /* Sets width for Sub-Menu box and the List Items inside - in proportional em units. This allows the sub-menu width to expand if users resize the text in their browsers. */ #p7menubar li ul, #p7menubar ul li { width: 13em; } /* The sub-menu links. We set color and turn off the right border, which would otherwise be inherited from the root link rule. We set top and bottom padding less than the root items and increas the left padding to indent the sub-menu links a small amount in from the root links. */ #p7menubar ul li a { color: #565656; border-right: 0; padding: 10px 10px 5px 20px; border-bottom: 1px solid #0075aa; } /* Sub-Menu Unordered Lists describes each dropdown sub-menu grouping. Positioned Absolutely to allow them to appear below their root trigger. Set to display none to hide them until trigger is moused over. Background Color must be set or problems will be encountered in MSIE. Right and bottom borders are set to simulate a raised look. A gradient background image is assigned. */ #p7menubar li ul { position: absolute; display: none; background-color: #00608a; background-repeat: repeat-x; } /* Changes the Text color and background color when the Root-Level menu items are moused over. The second selector sets color and background when Root-Level items are accessed with the keyboard tab key. The third selector sets an active state to support keyboard access in MSIE. The fourth selector is assigned to IE5 and IE6 Windows via the P7_ExpMenu script. Note that IE7 supports hover on elements other than links and so behaves like Firefox, Opera, and Safari - making the menu operable even if JavaScript is not enabled. */ #p7menubar li:hover a, #p7menubar a:focus, #p7menubar a:active, #p7menubar li.p7hvr a { color: #ffffff; background-color: #961927; } /* Set the Sub-Menu UL to be visible when its associated Root-Level link is moused over. The second selector is assigned to IE5 and IE6 via the P7_ExpMenu script. */ #p7menubar li:hover ul, #p7menubar li.p7hvr ul { display: block; } /* Sets the Text color of the Sub-Level links when the Root-Level menu items are moused over. The second selector is assigned to IE5 and IE6 via the P7_ExpMenu script. The color set should march the normal Sub-Level link color in the rule: #p7menubar ul li a. The background color must be transparent to allow the underlying gradient background on the UL to show through. */ #p7menubar li:hover ul a, #p7menubar li.p7hvr ul a { color: #ffffff; background-color: transparent; } /* The normal hover class for Sub-Level links. The Important directive is required for older browsers. We set a background color, which shows over the gradient background. We set text color to white. */ #p7menubar ul a:hover { background-color: #87101e!important; color: #ffffff!important; } /* The single backslash \ character inside this comment causes IE5 Mac to ignore the following rule, which allows other browsers to render top-level menu items to their natural width. Do not edit this rule in any way. */ #p7menubar li {width: auto;} /* new additions to make the 3 leven menu work */ #p7menubar li ul ul { /* third-and-above-level lists */ margin: -1em 0 0 11em; } #p7menubar li:hover ul ul, #p7menubar li:hover ul ul ul, #p7menubar li.sfhover ul ul, #p7menubar li.sfhover ul ul ul { left: -999em; } #p7menubar li:hover ul, #p7menubar li li:hover ul, #p7menubar li li li:hover ul, #p7menubar li.sfhover ul, #p7menubar li li.sfhover ul, #p7menubar li li li.sfhover ul { /* lists nested under hovered list items */ left: auto; }
I'm affraid pretty much
I'm affraid pretty much no-one will help you are using tables to structure your pages and still retaining the XHTML 1.0 Transitional DTD.
Sorry 
No work around?
Thanks josh,
But unfortunately im only updating the website and don't know CSS too well (not enough to convert the entire site anyhow)!
Surely there must be some work around? I mean the menu works perfectly in other browsers......damn IE6! it's always the bloody problem!
If you start validating
If you start validating today you might be finished by tomorow I just validated your HTML page and it returned 255 Errors try changing your doctype to maybe HTML 4.01 Transitional.
I'm sorry but If you have that many errors and you are still using tables I am unable to help you 
The only way I think this
The only way I think this can be fixed is by the doctype.
The reason for this is that you have sent IE6 into quirks mode because you're using a doctype that doesn't really work for your page.
My advice would be to spend the time completely redesigning it.
For an example of how this works look at XHTML 1.0 Transitional sites with 0 CSS, HTML or JavaScript errors because this will show you they take there time when designing and coding.
This site has the three validated.
which to use?
Hi Josh,
Thanks. Can i ask what the differnece between the doctypes are and when each one should be used? If you could explain it briefly in simple english i'd really appreciate it. Like when use transitional? how do i know which to use?
I'll try and find the W3
I'll try and find the W3 page it will probably be easier.
But basicly XHTML transitional does not allow capitals in tags for example
Wrong: <TABLE ALIGN="CENTER"> Right: <table align="center">
Also XHTML Transitional does not allow certain elemnts iside other elements:
<td> <div> Wrong </div> </td> --------------- <div> <table> <tr> <td> Right </td> </tr> </table> </div>
Hope this helps a little I'll try and find the page
Hey Josh Thanks for that
Hey Josh
Thanks for that and for your advice. Could i just ask one more thing...if i do validate the page, would this prevent it from going into quirks mode and thus let the menu work correctly? Or have i completely the wrong idea altogether??
I'm not saying it
I'm not saying it deffinetlly will but with 255 errors you've less chance in finding one that could be causing this problem.
If you have 0 errors we know this isn't due to any errors and this is CSS alone.
It's like process of elimination.
