![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Help needed, the script below detects the correct browser but doesn't select the correct CSS file. Also how to call it from an external js file so as not to repeat it in every page. Why don't you just use IE specific conditional includes? |
#2
| |||
| |||
|
|
jnc3196 (AT) googlemail (DOT) com wrote: Help needed, the script below detects the correct browser but doesn't select the correct CSS file. Also how to call it from an external js file so as not to repeat it in every page. Why don't you just use IE specific conditional includes? !--[if IE ] link ..... / ![endif]-- The following works for me and allows IE7 and all other browser to use |
#3
| |||
| |||
|
|
The following works for me and allows IE7 and all other browser to use my default css. However, it does not pass the W3C HTML validation. |
#4
| |||
| |||
|
|
Problem: The web site looks different under Firefox and Iexplorer 6. |
|
The solution is to load a different CSS file depending on the browser. |
#5
| |||
| |||
|
|
This is not necessarily a problem. Why must it look identical? |
|
The solution is to load a different CSS file depending on the browser. A better solution might be to write more portable, bullet-proof css. |
#6
| |||
| |||
|
|
I use Firefox, most of the viewers will be using Iexplorer. The fonts are different sizes and images don't position correctly. |
|
Here's one that shows promise .. http://www.digiways.com/articles/php...cssmethod.html |
#7
| |||
| |||
|
|
Do you have an example url? |
|
Yuck. Don't look at the user agent to serve up different css! This is always bad. |
#8
| |||
| |||
|
|
jnc3196 (AT) googlemail (DOT) com wrote: Problem: The web site looks different under Firefox and Iexplorer 6. This is not necessarily a problem. Why must it look identical? The solution is to load a different CSS file depending on the browser. A better solution might be to write more portable, bullet-proof css. I normally end up with a few entries in an IE specific css file to cope |
#9
| |||
| |||
|
|
Ok, so its back to a single css with conditionals for Iexplorer. |
#10
| |||
| |||
|
|
Problem: The web site looks different under Firefox and Iexplorer 6. |
![]() |
| Thread Tools | |
| Display Modes | |
| |