I am using pseudo classes and they work fine everywhere except IE7. I would like to know if there is any way to make them work in IE7.
Asked
Active
Viewed 2,194 times
1
-
I think you should show your code. – TimWolla Jan 21 '12 at 20:34
3 Answers
1
You can detect user-agent on the server and output different HTML to different browsers.
For PHP, you can use Browser.php (for example), or simply look at $_SERVER['HTTP_USER_AGENT']
variable
Other than that - only Javascript, sorry.
EDIT: Simplest way (no JS coding needed) - is to use Selectivizr - http://selectivizr.com/
It's the CSS3 emulation library for IE6-8

wizzard0
- 1,883
- 1
- 15
- 38
-
-
For the first option: what do you use on your server side? PHP, C#, Ruby, Python, Perl? – wizzard0 Jan 21 '12 at 20:38
-
-
Here, have a link for PHP and for Javascript. Personally I prefer the JS version - it's A LOT simpler. – wizzard0 Jan 21 '12 at 20:45
1
Here is the link on stackoverflow and the same question, somehow I am sure you'll find the answer you want here.

Community
- 1
- 1

rmagnum2002
- 11,341
- 8
- 49
- 86
0
No can do...
if it is absolutely necessary to utilize those pseudo elements in that browsers, you'll probably have to load a js file to correct the problem: http://code.google.com/p/ie7-js/

shaselton
- 578
- 4
- 10