...

View Full Version : Menu problem in IE



gregatron08
05-12-2010, 11:50 AM
Hey guys,m new user but this seems like a great community so i will be sticking around even after this is resolved (if it gets resolved)

I'm at my wits end, i have tried everything i can think of to solve this issue.

I have been using the cut and paste css horizontal list menu code from javascript kit (http://javascriptkit.com/script/script2/csstopmenu.shtml) And im having a problem in IE (firefox, chorme and opera are fine)

It is on this page, http://www.corver.essex.sch.uk/newbuild/blank.shtml, and the problem is when hovering over the "Parents" header it drops the second line down a whole load.

I can't think of anything else to try and it doesnt seem to happen to the other buttons or browsers.

Any thoughts guys? Or Do you need to see the CSS or similar?

Hope you can help, im about ready to inform all school parents to burn IE7 :)

gregatron08
05-13-2010, 10:03 AM
Hey guys, sorry

The CSS for the page is as follows:





.horizontalcssmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}

/*Top level list items*/
.horizontalcssmenu ul li{
position: relative;
display: inline;
float: left;

}

/*Top level menu link items style*/
.horizontalcssmenu ul li a{
display: block;
width: 85.5px; /*Width of top level menu link items*/
*width: 102.5px;
padding: 2px 8px;
border: 1px solid #202020;
border-left-width: 0;
text-decoration: none;
background: url(menubg.gif) center center repeat-x;
color: white;
font: 11px Tahoma;
}


/*Sub level menu*/
.horizontalcssmenu ul li ul{
left: 0;
top: 0;
border-top: 1px solid #202020;
position: absolute;
display: block;
visibility: hidden;
z-index: 100;
}

/*Sub level menu list items*/
.horizontalcssmenu ul li ul li{
display: inline;
float: none;
}


/* Sub level menu links style */
.horizontalcssmenu ul li ul li a{
width: 160px; /*width of sub menu levels*/
font-weight: normal;
padding: 2px 5px;
background: #933a20;
border-width: 0 1px 1px 1px;
}

.horizontalcssmenu ul li a:hover{
background: url(menubgover.gif) center center repeat-x;
}

.horizontalcssmenu ul li ul li a:hover{
background: #cde686;
}

.horizontalcssmenu .arrowdiv{
position: absolute;
right: 0;
background: transparent url(menuarrow.gif) no-repeat center left;
}

* html p#iepara{ /*For a paragraph (if any) that immediately follows menu, add 1em top spacing between the two in IE*/
padding-top: 1em;
}

/* Holly Hack for IE \*/
* html .horizontalcssmenu ul li { float: left; height: 1%; }
* html .horizontalcssmenu ul li a { height: 1%; }
/* End */

abduraooft
05-13-2010, 10:17 AM
Your markup is completely invalid!.

The first thing to make a valid markup is to have a complete DOCTYPE at the top. Read the article at http://www.alistapart.com/articles/doctype/. I'd recommend and HTML Strict one.

Also, while making your pages, you should ensure that your markup is valid as per the DOCTYPE used. You may check the validity from http://validator.w3.org/

GiffordBruno
05-13-2010, 01:25 PM
It is beyond my capacity. Can you pease attach it in simple manner? Thanks

gregatron08
05-14-2010, 09:20 AM
Sure, to be honest im not 100% sure of it myself

What would be a simpler manner for you?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum