2010/7/5 Philippe Wittenbergh <[email protected]>:
> Fwiw, I noticed that you are using JS to (eventually) load stylesheets 
> depending on the user screen resolution.
>
> Don't. This is the wrong way to solve this.
> For one thing, the is absolutely no guarantee that the screen width will be 
> the browser window width (or even the available space within the browser 
> window…). Although the screen width of the monitor in front of me is 1680px, 
> the browser window is ~1150px wide (and never wider). And before anybody 
> argues that most people browse with maximised windows, the user can have 
> sidebars open. I'm always surprised at how wide some IE users keep that 
> sidebar open.
>
> You can use media queries for better (and faster, more flexible) results, e.g
> @media screen and and (max-width:1280px) { /* stuff here */ }
> <http://www.w3.org/TR/css3-mediaqueries/>
> There is a for once not-so-bad article on ALA on the subject:
> <http://www.alistapart.com/articles/responsive-web-design/>
>
> (you could use js as a fallback for older browsers (IE6 - 8) that don't 
> support media queries)
>
> Philippe
> ---

Thank you Philippe I wasn't aware of that... well... more or less.
This is a work in progress, with many errors to solve and to put it better.

Thank you for you comment.

I will take note on that one as well.


Best regards,
Marcio
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to