Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
conditional css
Most of us know of the conditional tags for explorer ie
<code><!—[if lt IE 6]></code>
What I’m not sure is if there are similar conditional tags for mozilla based browsers or even safari and/or opera. I’m not talking about hacks here but more about proprietary css
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: conditional css
Proprietary mozilla CSS extensions are usually prefixed with -moz
. Are you talking about such cases?
Offline
Re: conditional css
wet wrote:
Proprietary mozilla CSS extensions are usually prefixed with
-moz
. Are you talking about such cases?
Hi wet,
I’m talking about exactly these sort of cases. with ie there is the conditional tag <code>!—[if lt IE 6]</code> whose content is ignored both by the other browsers and the css validator. I was investigating to find out if there is an equivalent tag for mozila etc
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: conditional css
IMHO, there is no necessity to embrace -moz
css extensions.
They are ignored by any other browser by default, and according to the w3c recommendation a declaration with an unknown property is ignored. by user agents. Sadly, the w3c CSS validator does not adhere to that recommendation, AFAIK.
Offline
Re: conditional css
wet wrote:
IMHO, there is no necessity to embrace
-moz
css extensions.
They are ignored by any other browser by default, and according to the w3c recommendation a declaration with an unknown property is ignored. by user agents. Sadly, the w3c CSS validator does not adhere to that recommendation, AFAIK.
This I can understand! I also take it that there is no conditional container for any other browser. As much as ie frustrates me, its conditional tag is very handy as it helps the css to validate in the current parser. I guess sometimes css validation could be put aside;)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#6 2006-05-24 23:39:06
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: conditional css
The conditional containers for IE were basically incorporated into IE to try and avoid css hacks. By using an HTML comment structure around the conditionals <code><!— . . . —></code> it insures its contents are ignored by other browsers. As CSS odd/invalid hacks aren’t needed with Firefox (or mostly Opera or Safari) there is no need to include such conditionals. Once (if ever) IE actually gets caught up with the rest of the browsing community it won’t need conditionals either.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: conditional css
NyteOwl wrote:
Once (if ever) IE actually gets caught up with the rest of the browsing community it won’t need conditionals either.
Amen!
Offline
Pages: 1