isn't quite ashamed enough to present

jr conlin's ink stained banana

2004-07-21

::Solving IE's CSS Bugs Via A Single Statement

All Praise and Cookies to DrDoc:

And, in fact, it appears that the display property holds the answer and solution to all of the above bugs. Finally, no need to memorize different bugs or different solutions, hacks, their pros and cons. There is just one bug, and one solution!

Sure enough, it works. i've been dealing with a Peek-a-boo problem and sure enough, setting display:inline-block to the hidden elements solved the problem. YAY!!!

Now, if only i can come up with a similar solution to FireFox 0.9's font overflowing it's float container…

D'oh. Stupid members only restriction (and stupid me for not clearing my cookies before i checked with a different browser)

The sum of it is that the guy thought about all the various hacks and fixes and tried to think about what the root problem was, and why IE was pushing so hard for the currently invalid "display:block-inline" tag to be accepted as part of CSS 2.1., so he investigated the function and discovered that it seemed to address a good many of the problems.

The article explains it much better than i'm going to, but the freebie version of this is you may want to examine setting "display:inline" to solve things like double margins for floated elements and duplicate characters, and "display:inline-block" to either the item or the parent (again, bit of experimentation may be required for you to determine which) to solve things like peek-a-boo, unscrollable content, pixel jog, and creeping text.

i'm not going to duplicate the article because that's unfair to the original producers, but that should be more than enough to get you going.

Valette
2004-07-21 - 13:01:51

looks like its a members-only topic, and im not going to pay for any subscription. was that the gist of it? set display:inline-block to, what, all hidden elements?


Valette
2004-07-21 - 16:12:06

spiff. thanks!


DaveP
2004-07-22 - 04:15:50

Or if you just want to punish IE users, you can crash their browser for 'em.

No really. Don't click on that if you're running IE.


Hey, delicious user, Save This Page
Blogs of note
personal that's my blog
(The Official Blog of the Internet)
memoirs of hydrogen guy matthew shepherd (quebec) rhapsodic.org j$ (right) Henriette's Herbal Blog fanatical apathy lynne ydw i iconophobia slumbering lungfish
geek Y!Cool Thing michael j radwin jeremy z
(The Official Website of the Internet)
dave's picks ultramookie Josh Woodward derek balling j$ (left) simon willison Yahoo! Search Blog
news ars technica search engine watch webmaster world.com
forums uh.net man-man killroy & tina

experimental

Firefox search plugins for Yahoo!

My Living Room media box config

The Official "Official" Registry of the Internet

Powered by WordPress
Hosted on Dreamhost.
And Steveo's page is Totally Fucking Awsome.