Page 1 of 1
Something IE got right.
Posted: Thu Aug 18, 2005 7:34 am
by Chris Corbyn
No question here... just a thought.
Maybe my n00b'ness is showing through

But I just found out about conditional comments in IE.
You know how fixing CSS issues can be a real PITA? and then even if they get working it's no longer valid code? Uh huh...
Code: Select all
<!-- IE requires this CSS fix - Do us all a favour and http://www.getfirefox.com/ -->
<!--[if IE 6]>
<style type="text/css">
//Your IE specific CSS here AFTER the proper stylesheet call
// Will be commented out of view of SGML parsers too
</style>
<![endif]-->
I always figured JS was the only way to check if a browser if IE or not... that makes it so much easier. Apparently there's all sorts of conditional comments you can use in IE listed on MSDN but that one has to be damn useful? - I just used it to sort out the "fixed" positioning problem in IE 6.
Posted: Sat Aug 20, 2005 4:06 am
by n00b Saibot
This thing is a bit of surprise for me. can you plz lemme know about the src of this information

Posted: Sat Aug 20, 2005 10:43 am
by Roja
n00b Saibot wrote:This thing is a bit of surprise for me. can you plz lemme know about the src of this information

http://virtuelvis.com/archives/2004/02/css-ie-only
q11wtq wrote:Something IE got right.
Its actually also wrong, according to the standards.
Lets review: IE has so many CSS problems (that deviate from the standards) that they are documented in websites with over 30 pages of critiques. Websites that formed the reference point for many of the fixes in the upcoming IE7beta2 - so they *are* accurate.
Because of those hideous problems, developers had to hack AROUND Microsoft's inability to follow standards, to try to maintain standards-based codes for all the other browsers that *are* following the rules.
Microsoft, in its infinite wisdom, decided to add a non-standard hack ("conditional comments") to allow authors to add IE-specific hacks to their standards-based-css.
I'd say Microsoft got it just about as wrong as is possible.
Re: Something IE got right.
Posted: Sat Aug 20, 2005 10:45 am
by AnarKy
d11wtq wrote: Apparently there's all sorts of conditional comments you can use in IE listed on MSDN but that one has to be damn useful? - I just used it to sort out the "fixed" positioning problem in IE 6.
That is unquestionably very nifty

Posted: Sat Aug 20, 2005 11:44 am
by Chris Corbyn
Roja wrote:
q11wtq wrote:Something IE got right.
Its actually also wrong, according to the standards.
LOL... I didn't *really* mean *right* but I did mean it's a way to get around their huge flaws in CSS interpretation using commented out broken bits of code thus avoiding standards-based SGML parsers.
Anywhere I ever need to use a CSS hack purely to make my layouts work in IE I add a sarcastic comment to the (X)HTML code quoting the URL
http://www.getfirefox.com/ 
Posted: Sat Aug 20, 2005 1:40 pm
by Roja
d11wtq wrote:
LOL... I didn't *really* mean *right* but I did mean it's a way to get around their huge flaws in CSS interpretation using commented out broken bits of code thus avoiding standards-based SGML parsers.
I understand, but keep in mind that there have been a good dozen $BROWSER-does-right/$BROWSER-is-stupid threads, and in the overwhelming majority, they've been wrong or "just meant something else".
It would dramatically improve things if people would stick to the technology question, and not blaming or congratulating particular browsers until the root cause was understood at least.
