View Full Version : Limit a web sites Resolution.
ChrisWade
06-01-2007, 11:21 PM
Hi, I am trying to my web site have the resolution of 1024X768
How can I do that?
ChrisWade
06-01-2007, 11:30 PM
body{ padding:3px;
height:1024px;
width:768px;}
mburt
06-02-2007, 03:32 PM
When you say "I want to have the resolution of..." that could mean one of two things... either what Chris suggested, to change the width and height of the parent window, or you could resize the window, using the window.resize(x,y) function. Either way won't change the effect having a different screen resolution takes on a web page though. The font may be smaller, icons, tables, etc.
You shouldn't do this: fixed-width layouts look daft at some resolutions, and for fixed-height layouts the text will overflow if it is too big.
mburt
06-02-2007, 05:36 PM
That's why I like using percentages for my layouts :).
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.