Log in

View Full Version : Ie and firefox display differently ... how to correct?



DIYPARTYHIRE
11-05-2009, 01:19 PM
web site
www.greenclaws.co.uk

ive done a quick fix for this but as you can see the menu bar in IE has a large gap at the end of it, ive used the same tab colour so it doesnt look to bad for now. In firefox it displays how it should.



/* MENU*/
#myslidemenu{
background: #4D7865;
width: 1200px;



}

.jqueryslidemenu{
font: bold 12px Verdana;
background: #4D7865;
width: 100%;
float: left;
}

.jqueryslidemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
background: #4D7865;

}

/*Top level list items*/
.jqueryslidemenu ul li {
position: relative;
display: inline;
float: left;
background: #4D7865;



}

/*Top level menu link items style*/
.jqueryslidemenu ul li a{
display: block;
background: #4D7865; /*background of tabs (default state)*/
padding: 8px 10px;
border-left: 1px solid #000000;

text-decoration: none;
align: right;
width: 168px;
}

* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
background: #4D7865;
}

.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
color: white;
}

.jqueryslidemenu ul li a:hover{
background: black; /*tab link background during hover state*/
color: white;
}

/*1st sub level menu*/
.jqueryslidemenu ul li ul{
position: absolute;
left: 0;
display: block;
visibility: hidden;
}

/*Sub level menu list items (undo style from Top level List Items)*/
.jqueryslidemenu ul li ul li{
display: list-item;
float: none;
}

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.jqueryslidemenu ul li ul li ul{
top: 0;
}

/* Sub level menu links style */
.jqueryslidemenu ul li ul li a{
font: normal 13px Verdana;
width: 200px; /*width of sub menus*/
padding: 5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid black;
}

.jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
background: #eff9ff;
color: black;
}

/* ######### CSS classes applied to down and right arrow images ######### */

.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}

.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}

any ideas on how to make them both fill out the page correctley?

many thanks

davelf
11-06-2009, 01:37 AM
use two different css, i have the problem lsat time, john the administrato give this is the example:



<link rel="stylesheet" href="main.css" type="text/css">
<!--[if lt IE 7]>
<link rel="stylesheet" href="old_ie.css" type="text/css">
<![endif]-->


Put your old IE styles in the old_ie.css stylesheet. They will supplement those in the main stylesheet, but only be read by IE 6 and less.

See also:

http://msdn.microsoft.com/en-us/libr...12(VS.85).aspx

for more info on how conditional comments work.

bluewalrus
11-06-2009, 07:00 AM
Link http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx