|
Posted by Good Man on 10/15/47 11:44
"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in
news:jvAZf.702350$qk4.408263@bgtnsc05-news.ops.worldnet.att.net:
> Maxi wrote:
>
>> Is there no way (may be javascript) to detect the system's screen
>> resolution first and accordingly resize the pictures?
>> For instance If i have pictures of 50 X 50 pixels then,
>> If screen resolution is 800 X 600, resize it to 24 X 24
>> if screen resolution is 1280 X 720, resize it to 32 X 32
>> if screen resilution is 1152 X 864, resize it to 40 X 70
>
> What will happen in my browser window which is 929 x 462 pixels?
>
> Or if my JavaScript is disabled, as it usually is?
....or if i'm viewing this on a handheld like an Ipaq or a Palm? Or, as
suggested, what if my screen resolution is 1280x720 but my browser window
is currently 600px wide?
basically what Beauregard is suggesting is that you DO NOT make your
website dependent on screen resolution in any way. Use HTML for content.
Use CSS to style your page accordingly.
Not to mention, falsely resized images (ie: an 300px wide image being
shrunk to 100px by an image tag) look TERRIBLE!!
[Back to original message]
|