2 replies [Last post]
moody
moody's picture
Offline
Regular
croatia
Last seen: 11 years 36 weeks ago
croatia
Timezone: GMT+1
Joined: 2003-09-21
Posts: 29
Points: 0

Not that I care or anyone else ought to care, because there are plenty of hacks and bugs to work around out there for whatever you want to hack or debug, but today I came across an interesting way to hide css from Mozilla. Of course it was by accident and of course it is thoroughly un-researched.

Did you know that when specifying an ID in your style sheet, that if you put two pound (#) signs instead of one, then IE6 on Windows will see it but Mozilla won't? Maybe it was just a fluke or maybe someone’s already documented this. That is what I was wondering.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 7 hours 40 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

i think i found a new hack!! whoopie!

Hi Moody,
The first thing you should do when you find something that may be a hack is check that it validates.
Then test it out on as many browsers as possible.

Unfortunately the hack wont validate:

Quote:
Parse error - Unrecognized : ##fred{margin:5px;}

Keep looking one day we may have a moody hack Cool

moody
moody's picture
Offline
Regular
croatia
Last seen: 11 years 36 weeks ago
croatia
Timezone: GMT+1
Joined: 2003-09-21
Posts: 29
Points: 0

i think i found a new hack!! whoopie!

that's a good laugh! the moody hack!

thanks. a little more learning today!