Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- CSS for FIREFOX and OTHERS
August 10, 2006, 9:48 am
rate this thread
being used is IE.
I am currently using wordpress and was using a plugin that results a
horrendous output in IE but works perfectly in some other browsers.
I will appreciate if someone can teach me how to make certain part of
my website totally invisble or non existent if viewed in IE, but will
work normally with other browsers.
Thank you very much. I am willing to donate some $ for solution.
Re: CSS for FIREFOX and OTHERS
Yes. Quite simply too.
IE has a feature called "conditional comments". These are pairs of
genuine HTML comments, which can have HTML between them. This is
absolutely valid HTML and any real browser will see them as two
comments with renderable content between them.
However if you select the right conditional test, IE (or even specific
IE versions) will instead treat both comments as being the start and
end of one jumbo comment, hiding all the content between them.
<!--[if !IE]>--><img src="..." alt="Won't appear in IE"
Note that this is only safe if you use the !IE form and test for _not_
IE. Otherwise real browsers treat this feature as invalid and render
the middle section anyway.
- » Cheap, Low Budget, Customized and Affordable Web Design Services
- — Next thread in » HTML Markup Language