Click to See Complete Forum and Search --> : Constraining Pages


MidnightDragon
10-06-2003, 03:04 AM
Does anyone know a script to keep the page 800 X 600 pixels no matter what sort of resoloution some one is running as well as disable resizing from their browser windows.

I have seen it done as a popup and I am pretty sure it can be done under normal web page entry conditions as well. Please show me how.

Help would be most apreciated.

James L.
10-06-2003, 03:23 AM
You aren't going to find this very helpful to your original question, but I must say that if I went to a site that FORCED my window to a certain size, then PREVENTED me from changing it...well, that site just lost my business.

Taking control of a users browser like that is very poor net etiquette. It instantly reminds me of porn site hell.

If I may ask, why do you want to do this? Maybe we could come up with a better solution that wouldn't piss off your users.

MidnightDragon
10-06-2003, 01:36 PM
Beccause I want my background to be a part of the page. I have made a background that will have buttons over it giving it the illusion of being a part of the actual page. In order to do this, I either need to be able to manipulate the back ground image AND all the buttons at the same time to resize with the resoloution and browser size. To make it simple, I decided on using the standaard resoloution size 800X600 at 120 dpi. This is basic and unless your computer is ancient. Also the site is for broadband ONLY so it wont come as any supprise that it will have alot of graphics interface that cannot be moved from the background position.

Thats why....

I would prefer answers instead of questions. Not to sound harsh but I thought thats what this forum was for.

AdamGundry
10-06-2003, 02:02 PM
James is right, you shouldn't do this. The result will probably be a buggy, non-standards compliant site in violation of accessibility law. You should design your site to adapt to your users, whether they are using the latest graphical browser or an old screen reader. Using CSS, it's not even that hard.

I strongly suggest you use CSS and other standards to correctly and attractively design your pages - to see what is possible, check out the CSS Zen Garden (http://www.csszengarden.com/).

To answer your original question: I'm almost certain it can't be done reliably. It certainly can't for the 13% of web users with Javascript disabled.

Adam

James L.
10-06-2003, 04:53 PM
Hey,

No offence taken M.D., helping is what I am trying to do.

Thing is, even if a monitor is set to 800 x 600 resolution, the actual amount of that space that can be used by the browser varies. If you did make the browser window 800 pixels wide, there is actually only about 750-780 pixels worth of viewing space due to scroll bars, etc.

It gets even worse when we talk about height. Depending on the browser configuration, you may only have between 300-450 pixels of height visible due to status bar, location bar, buttons, etc.

And, as Adam mentioned, 13% of users disable Javascript in their browsers and then you have NO control over the window.

As far as resolution goes, most stats show that about 45% of users are in 800 x 600, with the same 45% for 1024 x 768 and the remaining 10% of various other resolutions.

Most courses you take on preparing images for the web state that you should develop the images in 72 dpi.

Adam suggested you use CSS for page layout, though it is still VERY common to see sites use tables for layout (no one shoot me....just stating fact). Either use CSS to layout a fluid page, or if you REALLY have to have a fixed width and be backwards compatible use a table layout with a fixed width of 750 pixels MAX. Personally, I would go with the CSS layout.

Not the answers you want I am sure, but there it is.