liamloveslearning Posted September 4, 2009 Share Posted September 4, 2009 Hi everyone, if you have a look at my site http://reloaddesign.co.uk/v2/folio.html in firefox it renders perectly however if you view it in IE my navigation doesnt work, Ive read up on this and changed the DOCTYPE's etc to no avail, can anybody see anything wrong within my code? Thanks <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Reload Design</title> <link href="styles/main.css" rel="stylesheet" type="text/css" /> <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="captify.tiny.js"></script> <script type="text/javascript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } 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];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> $(document).ready(function(){ $('img.captify').captify({ // all of these options are... optional // --- // speed of the mouseover effect speedOver: 'fast', // speed of the mouseout effect speedOut: 'fast', // how long to delay the hiding of the caption after mouseout (ms) hideDelay: 100, // 'fade', 'slide', 'always-on' animation: 'slide', // text/html to be placed at the beginning of every caption prefix: '', // opacity of the caption on mouse over opacity: '100', // the name of the CSS class to apply to the caption box className: 'caption-bottom', // position of the caption (top or bottom) position: 'bottom', // caption span % of the image spanWidth: '100%' }); }); </script><link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head> <body style="margin:0;" onload="MM_preloadImages('images/back_home_over.png','images/index_nav/map_up.png','images/index_nav/nav2/images/1_02.png','images/index_nav/nav2/images/1_03.png','images/index_nav/nav2/images/1_04.png','images/index_nav/nav2/images/1_05.png')"> <div id="brwsrwrap"> <div id="contwrap"> <div id="hdr2"><br /> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><img src="images/index_nav/nav2/images/1.png" width="129" height="95" border="0" /></li> <li><img src="images/index_nav/nav2/images/2.png" width="131" height="95" border="0" /></li> <li><img src="images/index_nav/nav2/images/3.png" width="132" height="95" /></li> <li><a href="about.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('About','','images/index_nav/nav2/images/1_02.png',1)"><img src="images/index_nav/nav2/images/up_02.png" name="About" width="156" height="95" border="0" id="About" /></a></li> <li><a href="folio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Work','','images/index_nav/nav2/images/1_03.png',1)"><img src="images/index_nav/nav2/images/up_03.png" name="Work" width="157" height="95" border="0" id="Work" /></a> <ul> <li><a href="test-folio.html">Websites</a></li> <li><a href="logo-folio.html">Logo Design</a></li> <li><a href="test-vehicle.html">Vehicle Livery</a></li> <li><a href="test-banner.html">Signage Design</a></li> </ul> <ul> <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a> <ul> <li><a href="#">Item 3.1.1</a></li> <li><a href="#">Item 3.1.2</a></li> </ul> </li> <li><a href="#">Item 3.2</a></li> <li><a href="#">Item 3.3</a></li> </ul> </li> <li><a href="services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Services','','images/index_nav/nav2/images/1_04.png',1)"><img src="images/index_nav/nav2/images/up_04.png" name="Services" width="155" height="95" border="0" id="Services" /></a></li> <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','images/index_nav/nav2/images/1_05.png',1)"><img src="images/index_nav/nav2/images/up_05.png" name="Contact" width="157" height="95" border="0" id="Contact" /></a></li> </ul> <img src="images/index_nav/nav2/images/1_06.png" alt="End" width="47" height="95" /></div> <div id="titlebar"><img src="images/folio.png" /></div> <div id="askContainer"> <p></p> <div class="askControlls"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Back to ome','','images/back_home_over.png',1)"><img src="images/back_home.png" name="Back to ome" width="129" height="27" border="0" id="Back to ome" /></a> <div class="prevNext"></div> </div> <div class="servList"> <div class="abouttext"> <div class="folio1"><a href="test-folio.html"><img src="images/folio1.png" alt="Web Design" width="300" height="160" border="0" class="captify" /><br /> </a></div> <div class="folio2"><a href="logo-folio.html"><img src="images/folio2.png" alt="Logo Design" width="300" height="160" border="0" class="captify" /><br /> </a> <br /> </div> <div class="folio1"><a href="test-vehicle.html"><img src="images/folio3.png" alt="Vehicle Livery" width="300" height="160" border="0" class="captify" /><br /> </a><br /> <br /></div> <div class="folio2"><a href="test-banner.html"><img src="images/folio4.png" alt="Signage" width="300" height="160" border="0" class="captify" /><br /> <br /> </a><br /> <br /></div> </div> </div> </div> <div id="askSideBar"> <div class="asb_title"><br /> <img src="images/wwa.png" alt="Search" /></div> <p> Reload Design<br /> Unit 19 EBL Centre<br /> Picow Farm Road Runcorn<br /> Cheshire. WA7 4UA<br /> </p> <div class="map"> <div align="center"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Map','','images/index_nav/map_up.png',1)"></a></div> <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Map','','images/index_nav/map_up.png',1)"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Map','','images/index_nav/map_up.png',1)"> <div align="center"><img src="images/index_nav/map.png" name="Map" width="114" height="104" border="0" id="Map" /></div> </a> <div align="center"><br /> </div> </div> <p><br /> </p> </div> <div id="footer" class="footertxt">© Reload Design 2009 </div> </div></div> <script type="text/javascript"> <!-- var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> and my css is @charset "utf-8"; body { background-color:#000000} #brwsrwrap { background-attachment:fixed; background-color:#000000; background-image:url(../images/bg_contravision.jpg); background-repeat:repeat-x; height:auto; position:absolute; width:100%; } #hdr { background-image: url(../images/Header_index.png); background-repeat: no-repeat; height: 120px; background-position: bottom; } #homeimg { width: 955px; height: 323px; margin-top: 50px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: solid; border-right-style: solid; border-bottom-style: none; border-left-style: solid; border-top-color: #333333; border-right-color: #333333; border-bottom-color: #333333; border-left-color: #333333; } #homenav1 { height: 123px; float: left; width: 238px; background-image: url(../images/home_nav.png); border-left-width: thin; border-left-style: solid; border-left-color: #333333; border-right-width: thin; border-right-style: solid; border-right-color: #333333; } #homenav2 { height: 123px; float: left; width: 238px; background-image: url(../images/home_nav.png); border-right-width: thin; border-right-style: solid; border-right-color: #333333; } #contwrap { height: auto; width: 965px; margin-right: auto; margin-left: auto; } #homelink1 { background-color:#151516; border-bottom:thin solid #333333; border-left:thin solid #333333; border-right:thin solid #333333; float:left; height:40px; padding-top:7px; vertical-align:middle; width:238px; } #homelink2 { background-color:#151516; border-bottom:thin solid #333333; border-right:thin solid #333333; float:left; height:33px; padding-top:14px; vertical-align:middle; width:238px; } #news { border-bottom:thin solid #333333; border-color:#333333 #CCCCCC; border-top:thin solid #333333; border-width:thin; float:left; height:185px; margin-top:40px; width:955px; } .newsimg { margin-top: 30px; margin-right: auto; margin-bottom: auto; margin-left: 30px; float: left; } #latest { float: left; color: #666666; margin: 30px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } #footer { border-left-color:#CCCCCC; border-left-width:thin; border-right-color:#CCCCCC; border-right-width:thin; float:left; height:25px; margin-top:20px; width:955px; } .footertxt { color:#484548; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:12px; } .homelinktxt { color:#484548; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:12px; text-align:center; vertical-align:middle; } #titlebar { border-bottom:1px solid #ED1C24; height:34px; margin-top:50px; width:955px; padding-left:15px; } #askContainer { width: 702px; float: left; margin: 20px 20px 0 0; } #askSideBar { width: 234px; float: left; margin-top: 20px; margin-right: 0; margin-bottom: 0; margin-left: 0; } .askControlls { height:27px; margin:0 0 20px; padding-left:20px; width:702px; } .askList { width: 702px; background-color: #28282a; border-top: 1px solid #484548; padding-bottom: 20px; } .abouttext{ height:auto; width:662px; margin:20px 20px 20px 20px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #999999; } .answerBaloon, .commentBaloon { background-color:#484548; background-image:url(../images/answer_baloon_bg_bottom.gif); background-position:center bottom; background-repeat:no-repeat; margin:0 0 10px 20px; padding-bottom:35px; width:641px; } .answerBaloon h4, .commentBaloon h4 { background-image:url(../images/answer_baloon_bg_top.gif); background-position:center top; background-repeat:no-repeat; color:#E5e5e5; font-size:16px; font-weight:bold; padding:18px 30px 5px; font-family: Arial, Helvetica, sans-serif; font-style: italic; } .answerBaloon p, .commentBaloon p { color:#E5E5E5; margin:0 30px; font-family: Arial, Helvetica, sans-serif; font-style: italic; font-weight: bold; font-size: 14px; } .asb_title { width: 234px; border-bottom: 1px solid #ED1C24; margin-top: 20px; } #askSideBar p { list-style-type: none; margin: 10px 10px 0px 10px; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; line-height: 20px; font-size: 12px; } .map { width: 234px; margin-top: 20px; border-bottom-width: 1px; background-image: url(../images/index_nav/mapbg.jpg); background-repeat: no-repeat; background-position: center center; height: 113px; } #hdr2 { background-repeat: no-repeat; height: 120px; background-position: bottom; } .imgpad { margin: 7.7px; } /* ------------------------------------*/ /* << BEGIN COPY */ /* ------------------------------------*/ /* caption styling */ .caption-top, .caption-bottom { color: #ffffff; padding: 1.2em; font-weight: bold; font-size: 12px; font-family: arial; cursor: default; border: 0px solid #ff0000; background: #000000; } .caption-top { border-width: 0px 0px 8px 0px; } .caption-bottom { border-width: 8px 0px 0px 0px; } .caption a, .caption a { border: 0 none; text-decoration: none; background: #000000; padding: 0.3em; } .caption a:hover, .caption a:hover { background: #202020; } .caption-wrapper { float: left; } br.c { clear: both; } /* ------------------------------------*/ /* END COPY >>> */ /* ------------------------------------*/ .servList { width: 702px; border-top: 1px solid #484548; padding-bottom: 20px; } .folio1 { border-bottom:1px solid #484548; float:left; height:160px; margin-bottom:30px; width:300px; } .folio2 { height: 160px; width: 300px; float: right; margin-bottom:30px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #484548; } .folio1 a { display:block; height:160px; width:300px; font-family: Arial, Helvetica, sans-serif; color: #999999; text-decoration:none; } .folio1 a:hover { width:300px; height:160px; background-image:url(../images/home_nav.png); color: #FFFFFF; background-repeat:repeat-x; background-position: bottom; } .folio2 a { display:block; height:160px; width:300px; font-family: Arial, Helvetica, sans-serif; color: #999999; text-decoration:none; } .folio2 a:hover { width:300px; height:160px; background-image:url(../images/home_nav.png); color: #FFFFFF; background-repeat:repeat-x; background-position: bottom; } #askFolio { width: 970px; float: left; margin-top: 20px; margin-bottom: 0; margin-left: 0; } .workcont { width: 100%; border-top: 1px solid #484548; padding-bottom: 20px; } .workhold { height:auto; width:100%; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #999999; margin-top: 20px; margin-bottom: 20px; padding-left:20px; } .worksq { border-bottom:1px solid #484548; float:left; height:160px; margin-right:10px; margin-bottom:30px; width:300px; } .worksq a { display:block; text-decoration:none; color:#999999; font-family:Arial,Helvetica,sans-serif; } .worksq a:hover { display:block; background-image:url(../images/workbk.png); background-repeat:repeat-x; text-decoration:none; color:#ffffff; } .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } Quote Link to comment Share on other sites More sharing options...
itaym02 Posted September 4, 2009 Share Posted September 4, 2009 If you can put the minimal code snippet that does not behave the same between browsers, it will be much simpler to help you. Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted September 4, 2009 Author Share Posted September 4, 2009 ahh okay sorry, this is my html page <div id="hdr2"><br /> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><img src="images/index_nav/nav2/images/1.png" width="129" height="95" border="0" alt="** PLEASE DESCRIBE THIS IMAGE **" /></li> <li><img src="images/index_nav/nav2/images/2.png" width="131" height="95" border="0" alt="** PLEASE DESCRIBE THIS IMAGE **" /></li> <li><img src="images/index_nav/nav2/images/3.png" width="132" height="95" alt="** PLEASE DESCRIBE THIS IMAGE **" /></li> <li><a href="about.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('About','','images/index_nav/nav2/images/1_02.png',1)"><img src="images/index_nav/nav2/images/up_02.png" name="About" width="156" height="95" border="0" id="About" alt="** PLEASE DESCRIBE THIS IMAGE **" /></a></li> <li><a href="folio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Work','','images/index_nav/nav2/images/1_03.png',1)"><img src="images/index_nav/nav2/images/up_03.png" name="Work" width="157" height="95" border="0" id="Work" alt="** PLEASE DESCRIBE THIS IMAGE **" /></a> <ul> <li><a href="test-folio.html">Websites</a></li> <li><a href="logo-folio.html">Logo Design</a></li> <li><a href="test-vehicle.html">Vehicle Livery</a></li> <li><a href="test-banner.html">Signage Design</a></li> </ul> <ul> <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a> <ul> <li><a href="#">Item 3.1.1</a></li> <li><a href="#">Item 3.1.2</a></li> </ul> </li> <li><a href="#">Item 3.2</a></li> <li><a href="#">Item 3.3</a></li> </ul> </li> <li><a href="services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Services','','images/index_nav/nav2/images/1_04.png',1)"><img src="images/index_nav/nav2/images/up_04.png" name="Services" width="155" height="95" border="0" id="Services" alt="** PLEASE DESCRIBE THIS IMAGE **" /></a></li> <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','images/index_nav/nav2/images/1_05.png',1)"><img src="images/index_nav/nav2/images/up_05.png" name="Contact" width="157" height="95" border="0" id="Contact" alt="** PLEASE DESCRIBE THIS IMAGE **" /></a></li> </ul> <img src="images/index_nav/nav2/images/1_06.png" alt="End" width="47" height="95" /></div> and this is the coinciding css #hdr2 { background-repeat: no-repeat; height: 120px; background-position: bottom; } @charset "UTF-8"; /* SpryMenuBarHorizontal.css - Revision: Spry Preview Release 1.4 */ /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */ /******************************************************************************* LAYOUT INFORMATION: describes box model, positioning, z-order *******************************************************************************/ /* The outermost container of the Menu Bar, an auto width box with no margin or padding */ ul.MenuBarHorizontal { margin: 0; padding: 0; list-style-type: none; font-size: 100%; cursor: default; width: auto; } #anav { float: left; } /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */ ul.MenuBarActive { z-index: 1000; } /* Menu item containers, position children relative to this container and are a fixed width */ ul.MenuBarHorizontal li { margin: 0; padding: 0; list-style-type: none; font-size: 100%; position: relative; text-align: left; cursor: pointer; width: 8em; float: left; } /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */ ul.MenuBarHorizontal ul { margin: 0; padding: 0; list-style-type: none; font-size: 100%; z-index: 1020; cursor: default; width: 8.2em; position: absolute; left: -1000em; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */ ul.MenuBarHorizontal ul.MenuBarSubmenuVisible { left: auto; } /* Menu item containers are same fixed width as parent */ ul.MenuBarHorizontal ul li { width: 8.2em; } /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */ ul.MenuBarHorizontal ul ul { position: absolute; margin: -5% 0 0 95%; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */ ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible { left: auto; top: 0; } /******************************************************************************* DESIGN INFORMATION: describes color scheme, borders, fonts *******************************************************************************/ /* Submenu containers have borders on all sides */ ul.MenuBarHorizontal ul { border: 0; } /* Menu items are a light gray block with padding and no text decoration */ ul.MenuBarHorizontal a { display: block; cursor: pointer; background-color: #333333; color: #e5e5e5; text-decoration: none; font-family:Arial, Helvetica, sans-serif; font-size:12px; } /* Menu items that have mouse over or focus have a blue background and white text */ ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus { background-color: #33C; color: #FFF; } /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */ ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible { background-color: #ed1c24; color: #FFF; } /******************************************************************************* SUBMENU INDICATION: styles if there is a submenu under a given menu item *******************************************************************************/ /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal a.MenuBarItemSubmenu { background-image: url(SpryMenuBarDown.gif); background-repeat: no-repeat; background-position: 95% 50%; } /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal ul a.MenuBarItemSubmenu { background-image: url(SpryMenuBarRight.gif); background-repeat: no-repeat; background-position: 95% 50%; } /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal a.MenuBarItemSubmenuHover { background-image: url(SpryMenuBarDownHover.gif); background-repeat: no-repeat; background-position: 95% 50%; } /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover { background-image: url(SpryMenuBarRightHover.gif); background-repeat: no-repeat; background-position: 95% 50%; } /******************************************************************************* BROWSER HACKS: the hacks below should not be changed unless you are an expert *******************************************************************************/ /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */ ul.MenuBarHorizontal iframe { position: absolute; z-index: 1010; } /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */ @media screen, projection { ul.MenuBarHorizontal li.MenuBarItemIE { display: inline; f\loat: left; background-color: #28282A; color: #e5e5e5; width: 0.8em; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.