On Nov 7, 9:57 am, "dE|_" <d...@crackguitar.comwrote:
I have started looking into scripts for screen size detect with the
intention of using them to pick from a number of CSS style sheets tailored
to the size.
Is there a good reason why this is not so commonly done? IE am I wasting my
time?
I see further down this thread you have quite a specific thing you'd
like to do... but I'm going to ignore that!
Web developers are seldom as smart as they think they are. Whenever
they try to do something clever that takes into account all variables,
they mess things up because there's some variable (if not more) that
they haven't thought of.
Potential problems with coding based on "size" include:
1. the user might not have their browser maximised
2. you don't know how much chrome the browser is using
3. you don't know if the user is currently displaying optional
components such as Firefox's sidebar
4. if the user is currently displaying optional components such as
Firefox's sidebar, you don't know how wide they've decided to have it
display
5. you don't know what text size the user has selected as their
default
6. you don't know if the user will change the size of their browser's
window *while visiting your site*
7. if the user is currently displaying optional components such as
Firefox's sidebar, you don't know if they're going to change its width
*while visiting your site*
8. you don't know if the user has JavaScript enabled
9. scrollbars are different widths in different browsers on the same
system
10. some users will have more than one screen
11. opening pages in the background can change the height available
for your site in Firefox because another row is needed for the extra
tabs
12. different platforms will affect the exact measurements of most of
the above items
I'm sure there are quite a few more that I've not thought of!
Unfortunately, you'd have to think of them all as well...
--
AGw.