|
bobby -> RE: Different CSS for different resolution (9/23/2004 12:36:30)
|
Detecting screen resolution settings requires scripting, or a prewritten program like BrowserHawk (which is written in ASP I think) Basically you would use a JavaScript, ASP, php (etc) script to detect the display settings on a visitors computer and then dynamically change the style sheet depending on what values are returned... I've done this with an inline style sheet, but I've never tried it with a linked one... The biggest problem, other than having to know a little bit about scripting, is you'll have to build a whole new CSS for each screen resolution, which these days could be anywhere from 4-10 different sheets if you want to cover the entire gambit of possible resolutions There are only about 4 popular ones used, ranging from 640x to 1280x - but with the odd sizes and widescreen monitors available there are many more possibilities. It's much easier to use a % based on em for fonts, and % for sizes of layers and table cells so that one CSS will scale for all screen settings...
|
|
|
|