Hi all,
To simplify the code and cut out a lot of the same I basically have something like this:
<div id=“featured”>
<div id=“featured-nav”>
<a href=“#” id=“left” class=“activeSlide”>
<img src=“images/car_deals.png” width=“110” height=“75” alt=“get the best car deals” />
<h6>Whatever your chosen make or model, we have a deal right for you</h6>
</a>
</div>
</div>
#featured {
width: 1144px;
height: 480px;
overflow: hidden;
margin: 0 8px -10px 8px;
}
#featured-nav a {
height: 82px;
float: left;
cursor: pointer;
display: block;
padding: 20px 10px 0px 130px;
line-height: 18px;
text-transform: uppercase;
text-decoration: none;
text-align: center;
}
This is part of an auto-slider on the index page. The <h6>'s get pasted over background images making up a silder button selector.
Since most <h6> are pretty long and each slider button is only about 150px they extend over multiple lines (i.e. 2 or 3).
All browsers meaning IE8, Chrome, Firefox, Opera, Safari, Flock do the rightful thing of rendering a line-height of 18px. All but not IE7.
I’ve researched this online and it seems to be one of those IE7 bugs. A bug as it may be I’ve yet to find a way of forcing IE7 to give in.
The only DIV around the “featured-nav” DIV is the “featured” DIV but this doesn’t seem to be interfering any. This is proven by the fact that all browsers except IE7 change behaviour when I amend line-height: in “featured-nav”. They do exactly as they’re told.
IE7 is just entirely ignorant to whatever line-height: I try and give it.
IE7 doesn’t like percentages, okay it gets em, doesn’t like em, gets px but doesn’t take note either.
It’s not a show stopper but would be nice to fix, especially as it’s on the index page.
Thanks many,