I have a logo located in the top left corner and it is clipped off or trimmed on the bottom part when I view the page in Safari, Chrome and IE 8… but looks okay in IE7. What gives? Why would it do this? Here is a link to the page in question.
After looking at your logo image again it looks like you are wanting the overlap. In that case you could drag the banner up with a neg top margin in addition to what I just posted.
Hi,
You have a “double margin bug” going on in IE6. You have floated the “#nav li a” left with a left margin. It is causing the list items to drop down to a new line. Did you notice that the last couple of links were not visible?
#nav li a,
#nav li a:link,
#nav li a:visited {
text-decoration: none;
height: 38px;
display: block;
[B]margin: 18px 0 0 20px;[/B]
padding: 0;
font: bold 13px/38px Helvetica, Arial, sans-serif;
color: #000;
text-shadow: #FFF 0 2px 0;
[B]float: left;[/B]
[COLOR=Blue]display:inline;/*fix IE6 double margin bug*/[/COLOR]
}
Also when you set up an override for IE6 it needs to come AFTER the original selector in the cascade.
Try setting “haslayout” on #nav for IE6. It is always important that a parent with child floats has-layout. Your LIs’ are floated.
You have overflow:hidden on #nav and that is setting “haslayout” for IE7 and enclosing the floats in modern browsers. It does not trip haslayout for IE6 though.
* html #nav { /*IE6 haslayout*/
height:1%;
overflow:visible;
}
This seems to mess things up for every browser. I am going to remove the margin top and go back to the previous version that worked in all browsers except for IE6… Still wondering why it is doing this. Maybe I should add a condition just for IE6?
I am going to remove the margin top and go back to the previous version that worked in all browsers except for IE6… Still wondering why it is doing this. Maybe I should add a condition just for IE6?
IE6 treats height as if it were min-height. You have 101px height on your anchor so IE6 is going to stretch the header to accommodate it.
This seems to mess things up for every browser
I had mentioned that it needed to be used along with height 101px on the header. Did you do that? I can’t get your page to load now for some reason.
In that case you could drag the banner up with a neg top margin in addition to what I just posted.
This works well in IE 8 but now the IE6 browser shows the DIV banner pushed down as well as everything beneath it. Would I need to add something to the ie.css style sheet?