You are here: Re: Screensize « HTML « IT news, forums, messages
Re: Screensize

Posted by Barbara de Zoete on 05/16/06 23:37

On Tue, 16 May 2006 22:22:12 +0200, <CookiesMonster@gmail.com> wrote:

> Does anybode have a javascript what the following does.

This group is about HTML, not javascript.

> I would like to force a minimum screensize of 800*600
> Is this possible

With javascript you can't force anything. If a user has no javascript, it
won't work, no matter how thorough your script is.

With markup you can't force it either. In graphical browsers settings for
width on for example the body element might have effect, but in modern
graphical browsers the user has the final control and can override your
setting with ease.
Same goes for CSS.

BTW: you confuse screensize (presumably resolution) and the size of the
viewport of a browser. The browser viewport can be anything between
320x160 (PDA, cell phone) and maybe as large as 1600x1200 (wide screen
laptop or something like that). That means that there are
(1600-320)x(1200-160)=1280x1040=1.331.200 possible viewport sizes out
there that you have to deal with. Are you up to that?

You could be with not much effort:
<URL:http:www.google.com/search?q=liquid+design>

If you still want to design for 800px wide viewports, use some simple CSS
to do that, so if a user wants to, s/he can ignore it easily:

body {
width:768px;
margin:0 auto;
padding:2em 0; }


--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация