Topic: Detecting Browser Size and Including a New CSS Sheet |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: A Library Dungeon |
posted 04-09-2007 04:33
HELLO! Okay, so my style sheet is included through my header.inc... okay? I have made three style sheets, one for my resolution, which is the original (1280 x 1024), one for 800 x 600 and one for 1024 x 768. I have been googling since yesterday and I have even searched on here (I'm certain I saw something about it when I was searching on Wednesday, but I can't find it again) but I cannot seem to find an appropriate working code for detecting a browser size and linking to the appropriate external style sheet. Any of you intellectuals have the answer hidden under your seat? |
Lunatic (VI) Inmate From: under the bed |
posted 04-09-2007 05:22
1) you'll need javascript to detect the browser size. |
Nervous Wreck (II) Inmate From: A Library Dungeon |
posted 04-09-2007 06:20
Ahhhhh, I didn't even think of linking the div outside of the stylesheet, thanks Yes, I am very bad at the whole "one size fits all" thing. My past approach was that it was my website technically for me only, so if people didn't have my resolution, blast them! Now I want to accommodate the popular resolutions and so far the easiest way I can come up with is a stylesheet (which isn't actually all that easy given how many images my site has via my photoalbums. |
Paranoid (IV) Inmate From: Norway |
posted 04-09-2007 09:32
CSS3 Media Queries are exactly meant to provide a mean to filter some CSS to specific aspects of the media used by the user agent. And they a fracking easy to use. |