6 replies [Last post]
pumpkin1
Offline
newbie
Last seen: 13 years 23 weeks ago
Joined: 2007-03-03
Posts: 3
Points: 0

HI..starting a new thread as suggested - sorry for piggy backing on an exsisting one...
So my code works great everywhere BUT in IE7. I have a footer at the bottom, which comes up properly when you first call the site - but any page after that it overlays text and does not position after everything as desired.
I have tried clearing the floats in various places, defining the size of the wrapper to 100%, different types of the "clear" line. Also, I ensured that my DIVs where even and no extras where sitting around...I'm somewhat lost now.
I've attached the HTML, main php and the css...any help is greatly appreciated.

AttachmentSize
default.css_.txt10.91 KB
index.html.txt8.96 KB
main.php_.txt2.51 KB
ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 40 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

Your are going to kick

Your are going to kick yourself on this one. AND, please take note other coders.

IE7 ignores asterisks.

*height to IE7 says height

You cannot comemnt out a css property by sticking an asterisk in front of it. Use a z like I do.

pumpkin1
Offline
newbie
Last seen: 13 years 23 weeks ago
Joined: 2007-03-03
Posts: 3
Points: 0

OMG Thanks so much!!!!

You're right, I'm kicking myself - but more so because it now works. And yes, I can't beleive it was only an * that made it do that. I can't thank you enough...great job and all that stuff, and if I had a hat on it would be tipped to you now.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 43 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

ClevaTreva wrote:Use a z

ClevaTreva wrote:
Use a z like I do.

I didn't know you could do that. It's not a comment that my text editor recognises though (ie when you comment something out it changes colour). You can of course use * in your comments but they should be in the form:

/* this bit is commented out */

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Triumph (not verified)
Anonymous's picture
Guru

ClevaTreva wrote:... Use a z

ClevaTreva wrote:
... Use a z like I do.

What's this all about? :?

Show me this. (I don't have IE7 yet).

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 40 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

The OP was experimenting

The OP was experimenting with css attributes to see what would fix the problem of putting the footer at the bottom.

Rather than going to the hassle of a real comment in css, I have always used a zat the beginning (so height becomes zheight). My editor shows it as an error by all browsers simply ignore the line. Quick and fast and easy to spot when tidying up.

The OP had gotten into the habit of using an asterisk instead. Works for every browser too. Except IE7. To fix the * html hack, MS simply got IE7 to ignore the asterisk. Result? It rendered the OP's quick comment trick useless.

Trevor

Triumph (not verified)
Anonymous's picture
Guru

Ah, thank you CT! I

Ah, thank you CT! Smile

I mistakenly thought there was a new z hack for IE7. I misunderstood the entire thread. Tongue