Post Archive
› October 6, 2003
MidPass Filter
Tantek has a new CSS filter for us: the Midpass Filter, which can be used to target Windows IE 5.x only (lesser and greater browsers ignore it). This reminds me that I need to add the various helpful filter description pages to our resource page here. This was via Etc.
Comments
1. October 7, 2003 09:10 AM
2. October 7, 2003 10:24 AM
Nate Posted…
Somehow I missed the boat on conditional comments, hadn't heard of them till you just mentioned them here Jens. If I'm correct that you're meaning this technology, I'm not sure it's a more elegant solution. Really arguments could be made either way: like you said - conditional comments seem to be made just for that purpose, and are unlikely to interfere with other browsers (unverified guessing here). But on the other hand, you'd have to put those conditional comments in the actual HTML, rather than in an external style sheet. But as far as proprietary browser technologies, this one seems pretty well suited. Has anyone used this and run into problems?
3. October 7, 2003 10:37 AM
Jens Grochtdreis Posted…
The link you presented is unusal but it is correct. You will find more on CC on Microsoft's MSDN. You are right, that the selection is not made within a css but within the HTML-Code. But where's the problem ? even with Templates it is possible. I simply do this nearly every time, I want to serve only IE 5.x Win with a CSS. The other possibility I use is putting a hyphen in front of e.g. width (==> -width: 110px;), this is only recognized by IE Win.
4. October 7, 2003 11:07 AM
Nate Posted…
I can't find either of the techniques you mention in the css wiki, but seems like they should be there since both methods fall under what constitutes a good css hack. It would also be nice to see them tested in the Centricle CSS filter chart.
5. October 7, 2003 11:58 AM
Jens Grochtdreis Posted…
I read the trick on dhtml-kitchen, but maybe you're right to add it to the css-dicuss-wiki.
Jens Grochtdreis Posted…
Unfortunately the the trick didn't work in my IE5 Win2k. But even if it did: why should I use such a comlicated way to hide a CSS from every browser except IE5.x Win ? I would use conditional comments instead. They are easy and definitely made for exact that purpose.