First of all, here's a page that displays the problem in question:
http://animeworld.com/learnindex.html
Second, here's a few screenshots from BrowserShots.org; the one for MISE 7 shows what I'm talking about:
http://browsershots.org/website/http://animeworld.com/learnindex.html#success
Now, for the description: I've got a div-based layout with your standard lefthand menu and block of text for the body. As usual with this kind of layout, since I want the body color to be at least as long as the lefthand menu, I need a way to "stretch" the div down to at least that length. I did this by sticking a "badge" image as the last thing in the div, and setting it to "clear: both", so it'll always appear below the menu.
This works in EVERY browser I've tested it in all the way back to IE4; IE6 is fine, IE5 is fine, IE5 Mac is fine, Camino, Firefox, Opera, Safari, etc all fine. Except for IE7 beta; for some reason, the image doesn't "stretch" properly in it (and it does this on an actual install, not just BrowserShots.org). I can't figure out if I'm doing something wrong or if it's a bug.
I also have a feeling there's a better way to be centering the image with CSS (it's also a # link to the top of the page; figure it might as well do something on longer pages).
The relevant chunks of the code in question are thus:
(X)HTML:
CSS:
...I'm using the auto margins to "properly" center the image using CSS, and the text-align to account for stupid IE junk. Is there a smarter way to be doing what I'm doing here?
Any idea why IE7 isn't behaving like ANYTHING else?
http://animeworld.com/learnindex.html
Second, here's a few screenshots from BrowserShots.org; the one for MISE 7 shows what I'm talking about:
http://browsershots.org/website/http://animeworld.com/learnindex.html#success
Now, for the description: I've got a div-based layout with your standard lefthand menu and block of text for the body. As usual with this kind of layout, since I want the body color to be at least as long as the lefthand menu, I need a way to "stretch" the div down to at least that length. I did this by sticking a "badge" image as the last thing in the div, and setting it to "clear: both", so it'll always appear below the menu.
This works in EVERY browser I've tested it in all the way back to IE4; IE6 is fine, IE5 is fine, IE5 Mac is fine, Camino, Firefox, Opera, Safari, etc all fine. Except for IE7 beta; for some reason, the image doesn't "stretch" properly in it (and it does this on an actual install, not just BrowserShots.org). I can't figure out if I'm doing something wrong or if it's a bug.
I also have a feeling there's a better way to be centering the image with CSS (it's also a # link to the top of the page; figure it might as well do something on longer pages).
The relevant chunks of the code in question are thus:
(X)HTML:
Code:
<a href="#top"><img src="/images/minibadge.jpg" width="100" height="60" class="badge" alt="Back to top of page" /></a>
CSS:
Code:
img.badge { display: block; clear: both; margin-left: auto; margin-right: auto; padding: 1em; text-align: center; }
...I'm using the auto margins to "properly" center the image using CSS, and the text-align to account for stupid IE junk. Is there a smarter way to be doing what I'm doing here?
Any idea why IE7 isn't behaving like ANYTHING else?