Hi..
I want to apply setting depending on browser version...
I'll show u a prototype
.mycssclass{
[if IE 6]
COLOR:RED;
[ELSE IF IE 7]
COLOR:blue;
[ELSE]
COLOR:GREEN;
[END IF]
}
Hi..
I want to apply setting depending on browser version...
I'll show u a prototype
.mycssclass{
[if IE 6]
COLOR:RED;
[ELSE IF IE 7]
COLOR:blue;
[ELSE]
COLOR:GREEN;
[END IF]
}
For IEs, you can use conditional comments:These are mostly applied to work around IE's many bugs. If you want to do other browsers too, firstly be very sure of what you're doing (if you're getting differing behaviour, it's probably because you haven't followed the standards properly) and then use JS, remembering to provide a non-JS fallback for non-JS users.Code:<style type="text/css"> .mycssclass { color: green; } </style> <!--[if IE 6]> <style type="text/css"> .mycssclass { color: red; } </style> <![endif]--> <!--[if IE 7]> <style type="text/css"> .mycssclass { color: blue; } </style> <![endif]-->
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
I am pretty sure you cant use that format in css but try to create clean, standard compliant css files and it should work in IE and FF too.
If you need help try posting the problems here
Considering that IE7 doesn't support half of CSS2, let alone the bits of CSS3 that other browsers are now starting to integrate, I doubt that very much.try to create clean, standard compliant css files and it should work in IE and FF too.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
thank you.. for all ur support![]()
Bookmarks