View Full Version : CSS Works in FF, not IE...

Drakain Zeil
Apr 27th, 2007, 06:56 PM

I'm trying to center an image on a page, and have it aligned with the bottom. I have it working for FF, but IE doesn't seem to like it.

The CSS is here:

I use the two div IDs to get it there.

Any ideas on why IE doesn't play nicely?

I know about IE and png, so don't worry about that one.

Apr 27th, 2007, 09:05 PM
Hello Drakain Zeil,
Try a different approach:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="a_files/main.css" type=text/css rel=stylesheet>
<DIV id=one></DIV>

html {
height: 100%;
width: 100%;
BACKGROUND: #000000 url(main.png) repeat-y center;
TEXT-ALIGN: center;
height: 100%;
width: 100%;
#one {
height: 100%;
background: url(menu.png) no-repeat center bottom;

Drakain Zeil
Apr 28th, 2007, 04:35 AM
Thanks, it seems to work with IE. However it also seems to add scroll bars in FF, which I think I can fix with a bit of div changing.

Apr 28th, 2007, 05:08 AM
yeah, if you change the divs a little bit it should work