|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
my browser switch doen#t work
hi guys
i installed a browser switch in my site because it is displayed different in ie5, ie6 and mozilla browsers. here is the code: <!--[if IE 6]> <link type="text/css" rel='stylesheet' href="NBIE6.css"> <![endif]--> <!--[if IE 5.5000]> <link type="text/css" rel="stylesheet" href="NBIE55.css"> <![endif]--> <!--[if lt IE 5.5]> <link type="text/css" rel="stylesheet" href="NBIE5.css"> <![endif]--> <!--[if !IE]> --> <link type="text/css" rel="stylesheet" href="notIE.css"> <!-- <![endif]--> it works fine with ie6 and mozilla, but not with ie5 or ie5.5. does anybod know why? or know a better browser switch? tahnks for your answers bye |
|
#2
|
||||
|
||||
|
How are you detecting the browser?
Browser sniffing is a really crap thing to do, object sniffing is much better/more efficient. Also, it's much easier to define one link tag, and just change the href dynamically with JavaScript... Can you post the rest of your code?
__________________
Support requests via PM will be ignored! |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > my browser switch doen#t work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|