HTML - Ie 6 And Ie7 Menu Problems
I am having problems with my drop down menu in both IE6 and IE7 it is not showing the borders on the list items
menu markup Code: <ul id="topMenu" class="topMenuHoriz"> <li><a href="index.php">Home</a></li> <li><a href="portfolio.php">Our Work</a></li> <li><a href="services.php" onmouseover="setMenu('topMenuSub')" onmouseout="clearMenu('topMenuSub')">Services</a></li> <li><a href="contact.php">Get in Touch</a></li> </ul> <ul id="topMenuSub" class="topMenuVert" onmouseover="setMenu('topMenuSub')" onmouseout="clearMenu('topMenuSub')"> <li><a href="basicPackage.php">Basic Package</a></li> <li><a href="starterPackage.php">Starter Package</a></li> <li><a href="smallBusinessPackage.php">Small Business Package</a></li> <li><a href="blogsPackage.php">Blogs</a></li> <li><a href="cmsPackage.php">Content Management Systems</a></li> <li><a href="logoDesign.php">Logo Design</a></li> </ul> Menu CSS Code: ul#topMenu { float: right; width: 600px; height: 38px; padding-top: 10px; } ul#topMenu li { float: left; width: auto; margin-left: 20px; } ul#topMenu a { display: block; color: #FFF; font-size: 1.4em; text-align: center; padding: 10px; } ul.topMenuVert { position: absolute; top:58px; left: 570px; visibility: hidden; width: 180px; height: auto; } ul.topMenuVert li a{ color:#FFF; font-size: 1.2em; text-decoration: none; display: block; padding: 5px 0px 5px 0px; } ul.topMenuVert li { width: 180px; height: 15px; background-color: #2871aa; border-bottom: #236293 1px solid; border-top: #3d87c1 1px solid; line-height: 5px; padding: 5px; } ul.topMenuVert li:hover { background-color: #206295; } See image ie and ie7 menu problem.jpg Similar TutorialsHello everyone I have done a site in ASP. The ASP code fills a List/Menu from a database using a loop. The problem I am having is how do get the items inside the List/Menu to act as link to re-load the page. Here is the code for the list. It is a standard form/list menu affair for an HTML form. I have tried everything I know...Ireally dont want to use Javascript, is that the only option? <select name="select" class="style1_1" style="width:150px;" > <% Do While Not rsEaseData.EOF %> <option> <%=rsEaseData.Fields("Serial No").Value%> </option> <% rsEaseData.MoveNext Loop %> </select> Please Help Hi guys, my name is Paolo and I'm newbie I don't speak English very well because my native language is Italian (I live in Switzerland, so..). This is my Menu HTML code: PHP Code: <div id="telefilm-menu"> <ul> <li class="first"></a> <li><a href="http://www.telefilmnetwork.com/greek/" class="right current">Sommario</a></li> <li><a href="http://www.telefilmnetwork.com/greek/news/" class="right">News</a></li> <li><span class="right">Episodi</span></li> <li><span class="right">Cast</span></li> <li><span class="right">Immagini</span></li> <li><span class="right">Video</span></li> <li><span class="right">Musica</span></li> <li><span class="right">DVD</span></li> <li><span class="right">Extra</span></li> <li><span>Forum</span></li> <li class="last"></a> </ul> </div> The CSS style: PHP Code: #telefilm-menu { margin: 124px 0 0 10px; font-weight: bold; } #telefilm-menu li.first { width: 10px; height: 36px; background: url("telefilmenu-sx.gif") no-repeat top left; padding: 0; } #telefilm-menu li.last { width: 10px; height: 36px; background: url("telefilmenu-rx.gif") no-repeat top left; padding: 0; } #telefilm-menu ul{ margin:0; padding:0; list-style-type:none; width:auto; float:left; height: 36px; } #telefilm-menu ul li{ display:block; float:left; margin:0; background: url("telefilmenu.gif") repeat-x top left; color:#cccccc; text-decoration:none; line-height: 36px; vertical-align: middle; padding: 0 5px 0; } #telefilm-menu ul li span.right{ background: url("telefilmenu-border.gif") no-repeat bottom right; display:block; line-height: 36px; padding-right: 10px; } #telefilm-menu ul li a{ display:block; float:left; color:#000000; text-decoration:none; line-height: 36px; vertical-align: middle; padding: 0 8px 0 8px; } #telefilm-menu ul li a.right{ background: url("telefilmenu-border.gif") no-repeat bottom right; display:block; line-height: 36px; padding-right: 10px; padding-left: 10px; } #telefilm-menu ul li a.current{ display:block; float:left; color:#ffffff; text-decoration:none; line-height: 36px; vertical-align: middle; background: #006f9f; } #telefilm-menu ul li a.current:hover{ color:#ffffff; text-decoration:none; } #telefilm-menu ul li a:hover{ color: #000000; text-decoration: underline; That's what appear: The problem is that when there is the blue background (as color, not image), the "bar" on the right doesn't appear because is also as background.. I would like to get this: I don't really know how to do that...Can anybody help me please? Thanks in advance, Paolo. PS: sorry for the time, but where I live it 's midday I had a program automatically generate code for me for a dropdown menu, but whenever I place the code into iWeb the HTML snippet just makes a blank box. Can anyone give me a hand? Here's the code: Code: <script src="psnavjs.js" type="text/javascript"></script><noscript><OBJECT id="psnavobj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=950 HEIGHT=53> <PARAM NAME=movie VALUE="psnav.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="psnav.swf" menu=false quality=high bgcolor=#000000 WIDTH=950 HEIGHT=53 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></noscript> Hello, I have some problems with HTML, I can not see anything particularly wrong, but the banner and my menu aint hang together in IE, it is about 10 pixels from each other, they sit perfectly with each other browsers, it is only Internet Explorer there the menu and the banner does not hang together. Print Screen: Thank you for helping me! -Kristoffer I know, who still uses Netscape? Alas, this will not solve my problem nor please my customer. My drop down menus that should go vertical as you roll over the bar are going horizontal and you can't click on them! Would someone please help me out? www.liftoffevents.com Hi, I'm being outsourced to turn an image into a website and I've been jumping through hoops all night trying to create a simple drop-down menu... Obviously it's not going well. All I want is that it is no more than 20px high, black no borders, white Arial Black or Verdana 10px all caps BOLD font, text mouseover to #fbb03b.. drop-downs that have a dark grey border on the bottom only (no other sides should have borders) and mouseover to #fbb03b for each link (same text formatting as base menu). This is becoming incredibly difficult for me, and things just keep going wrong. I'm using Adobe DreamWeaver CS4. This project is due in 12 hours, and I haven't slept, so I'm not exactly in for a learning experience right now, I just need immediate and effective help. Please help if you can. Thanks very much. I have this menu to rollover... and I cant seem to get the positioning correct. All I want to do is shift it to the right about 100px so that it doesnt cover up the rest of the menu items. I will paste the CSS, javascript, and html code here... I have tried positioning it via CSS and thats not working :/ Is there a way to do it in the java code? Or if you want you can say how you would do it in CSS... maybe I just was doing it wrong. CSS Code: #dropmenudiv{ position:absolute; border:1px solid black; border-bottom-width: 0; font:normal 12px Verdana; line-height:18px; z-index:100; } #dropmenudiv a{ width: 100%; display: block; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; } #dropmenudiv a:hover{ color:#000000; background-color: #cc0000; } JAVA Code: <script type="text/javascript"> var menu1=new Array() menu1[0]='<a href="group.html">About (group)</a>' menu1[1]='<a href="officers.html">Current Officers</a>' menu1[2]='<a href="officerjoin.html">Become an Officer</a>' var menu2=new Array() menu2[0]='<a href="meetings.html">Meetings</a>' menu2[1]='<a href="alumniday.html">Alumni Day</a>' menu2[2]='<a href="industryday.html">Industry Day</a>' var menuwidth='165px' var menubgcolor='lightyellow' var disappeardelay=50 var hidemenu_onclick="yes" var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px" if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge } } return edgeoffset } function populatemenu(what){ if (ie4||ns6) dropmenuobj.innerHTML=what.join("") } function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() clearhidemenu() dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv populatemenu(menucontents) if (ie4||ns6){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth) dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.y=getposOffset(obj, "top") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if (ie4||ns6) return false else return true } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } function dynamichide(e){ if (ie4&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu() } function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if (ie4||ns6) dropmenuobj.style.visibility="hidden" } } function delayhidemenu(){ if (ie4||ns6) delayhide=setTimeout("hidemenu()",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide) } if (hidemenu_onclick=="yes") document.onclick=hidemenu </script> HTML Code: <li><a href="events.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">Events</a> </li> Any help would be appreciated! Thanks! this is my page http://web.vtc.edu/users/cjb06271/CI...nal/order.html there are several things I would like to happen. 1. the right collumn background to be where the right collumn should be(so other links in navbar) 2.The test between the roach pictures to be alligned with the top rather than bottom of pictures (so smaller windows can see) 3. When you size the window smaller than the text, a scroll bar appears, and when you scroll the background no longer exists. If I put it on auto the background will only go as far as the text does. 4. (nice but not required)The cocroachs to be alligned to the left and right of the top bar respectively, and the text in the middle. 5. (nice but not required) the right column background image is being cut in half (as does the top one if you size small enough). any way to make the images ignore the collumns? don't worry about the colors I will be changing them soon I am trying to get rid of the "You have to click to activate this function" mumbo jumbo for a site I am doing. I tried following these directions... http://www.adobe.com/devnet/activeco...devletter.html but am having a rough time getting it to work... here is my code. Code: <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','900','height','140','src','GoodDock','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','GoodDock' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="900" height="140"> <param name="movie" value="images/GoodDock.swf" /> <param name="quality" value="high" /> <embed src="images/GoodDock.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="140"></embed> </object></noscript> Hello, I'm new to this forum, so first, hello! Actually, I'm new to web design in general but have taken on the role at the church I work at because our old site was a mess. I downloaded some nice looking templates and have been using them as a foundation. The site is www.miamibc.com. If you go there and look at the header menu (home, about us, etc), I want to consolidate that menu some and add a drop down menu with more choices. Is there a way I can do this while keeping it looking the way it does now? If you need any more info from me, let me know. Thanks for your help! Ben My OS is windows 7 64bit and have installed: - internet explorer 9 - Mozilla Firefox - Google Chrome My website is getting displayed correctly on Firefox and Chrome but is a bit of a mess on IE9 If you could have a look and let me know if there is anything I could do, would be much appreciated. Here is one page of my site that is bothering me: http://www.dashony.com/Solar%20panel...0projects.html Please check out the white menu, ( SpryMenuBarVertical ) using IE and one of the other 2. Thanks! Hi The bit of coding below works fine in firefox and ie 5 and older it does not show right in ie 6 and 7 Please can someone tell me how to fix this bug. <td align="left" valign="top" bgcolor="#E7EEF5"><ul type="square" class="style2"> <li class="style3">Ground Training, starting and schooling young horses</li> <li class="style3">Re-schooling and corrective training to overcome behavioural and physical problems</li> <li class="style3">Rehabilitation following injury or illness</li> <li class="style3">Training for horse and rider at all levels and disciplines</li> <li class="style3">Re building confidence between horse and rider</li> <li class="style3">Re-training race horses</li> </ul> </td> <td align="left" valign="top" bgcolor="#E7EEF5"><ul type="square" class="style2"> <li class="style3">Competition preparation</li> <li class="style3">Advanced Equine Dental Technician</li> <li class="style3">Tellington Touch (TTeam) Groundwork and bodywork</li> <li class="style3">McTimoney Manipulation</li> <li class="style3">Equine Sports Therapy</li> <li class="style3">Massage, Stretching and Bodywork classes for horse owners</li> </ul> </td> Hi, I am facing some problem. I am currently doing a html template. But I don't seem to be able to solve the gap problem I am facing (View my snapshot), can anyone help me? Thanks alot! Snapshot file: http://i49.tinypic.com/3t3eo.jpg HTML Code: <!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" /> <link href="styles.css" rel="stylesheet" type="text/css"> <title>Darren Ng - Future Pilot</title> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><a href="index.html"><span>Darren's</span> Website</a></h1> <table><tr> <ul id="menu"> <li><a class="current" href="#">Home</a></li> <li><a href="#">Practice</a></li> <li><a href="#">Attorneys</a></li> <li><a href="#">Accidents</a></li> <li><a href="#">News</a></li> <li><a href="#">About Us</a></li> </tr></table></div> <div class="clr"></div> </div> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <td align="center" valign="middle"><table width="1000" height="550" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="1000" height="360" align="center"><img src="images/header.gif" width="1000" height="360" hspace="0" vspace="0" border="0" align="top" usemap="#MapMap"></td> </tr> CSS File: Code: body { font: .74em Tahoma, Verdana, Sans-Serif, Arial; color: #7f7f7f; background-image: url('images/bodypixel.gif'); background-repeat: repeat; } h1 { font: normal 5em "Trebuchet MS", Helvetica, Arial; } p { margin: 0 0 15px; line-height: 1.6em; } a { outline: 0; color: #304D6F; text-decoration: none; } li { list-style: none; } li a, img { display: block; } img { outline: 0; border: 0; } #wrapper { width: 984px; margin: auto; } .clr { clear: both; } #logo { float: left; padding: 30px 15px; } #logo h1 a { color: #fff; } #logo h1 a span { color: #808080; } #menu { height: 44px; padding: 5px 0 0 4px; } #menu li { float: left; font-size: 1.3em; text-transform: uppercase; } #menu li a { color: #888; margin: 0 50px 0 0; } #menu li a:hover { color: #fff; } #menu li a.current { color: #fff; } I recently bean using ssi instead of frames and i now have an issue... I do not know how to keep the menubar on the left hand side at the top... see as my page streaches it centers itself in the midle of the screen... i am using tables to create a framelike effect without the issues that frames create Hi everyone, I recently landed myself a job as a web manager. It's been a long time since I done it however, as I've had children to bring up and so on - i'm a bit rusty but getting through it okay. I've hit a snag however and I'm wondering if anyone can help me... The website i'm charged with watching over works completely fine bar one problem, and its not even a big problem - just a bit annoying. One of the images, when opened in Chrome, floats to the left when it is supposed to be central. This is the only image to do this on the website in any browser. Has anyone got any tips for me? take a look at this and can anyone tell be why it does this in ie it look fine in firefox and safari http://nathanoconnor.co.uk/kartingchampionships/site/ thanks Hey guys I have coded my site and so far it works fine in IE7 and IE6 but IE5.1 it not center in the page the nav has moved to the top of the page. See screenshots. Whats wrong with IE5.1 to make my site move so much and how do I fix the problem. Cheers EDIT: Sorry guys the screenshot below with the site off to the left is IE5.1 Hi everyone I hope some of you pros can help me out here? When you go to my site www.iMaciForums.com with IE 6 the text is all misaligned, I had the same problem with IE 7 & but I fixed that its just IE6 now. So could you take a look and let me know whats wrong with it, because it's driving me crazy Thanks. |