Topic: Detecting Browser Size and Including a New CSS Sheet (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: A Library Dungeon |
![]() 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 |
![]() 1) you'll need javascript to detect the browser size. |
Nervous Wreck (II) Inmate From: A Library Dungeon |
![]() Ahhhhh, I didn't even think of linking the div outside of the stylesheet, thanks |
Paranoid (IV) Inmate From: Norway |
![]() 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. |