Site min resolution

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Site min resolution

Post by [n00b] »

guys how can I set my site`s min size to 800
I mean, my site is made for all resolutions (autostretched) but I don`t want it to go less than 800px
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

well you would have to use javascript really....because what your talking about would be completely on the users pc
unless you had you index file with JS in it that would get the user's resoultion and then call another file depending upon what the resoultion is

those are my 2 cents

look into ScreenX and ScreenY - i believe those ate the 2 parameters for the screen resoultion
i could be wrong though i have been before...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you could just design it so it can't get any smaller than 750px or whatever... :?
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

whay does it matter though, well lets ask everyone, do any of you use anything below 800X600?

i really doubt it

im sure there are still some people that do but not too many
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

This is more of a problem geared towards the setup of your design. If it is a problem, maybe rethink your design.
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post by [n00b] »

actually, you didn`t understand my question and that because of my mistake :) (my English is not good)

when a user resizes the browser window, the site becomes a mess when it goes below some specific width. The images from which the table corners and sides are built are messed to. So, I want to set a minimmum width for that table so it does not resize below a width.

feyd: This is what I want to do but I don`t know how
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

build a 1 pixel high image, 750 pixels wide. The page will not allow the contents to go more narrow than that.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

besides the 1pixel trick, you could also consider using CSS 2 which has attributes min-width etc
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post by [n00b] »

timvw wrote:besides the 1pixel trick, you could also consider using CSS 2 which has attributes min-width etc
is css2 supported by older browser versions like IE4/5 or opera 5/6?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

that's something you should lookup. and if you're doing that, also lookup how usefull pixels are in a character based browsers like lynx and links
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

well i have my screen res @ 1024

personally i design 99% of my sites at this resolution and atm the major project i am doing uses the full 1000px width, this is because i need so much screen estate.

its bad i know, but sometimes it has to be done
romeo
Forum Contributor
Posts: 138
Joined: Sun Apr 21, 2002 12:50 pm

Post by romeo »

i design every site a 765, center or left justified and have repeating backgrounds inside the table set at 100%
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

As a rule, ANY site that you want to be viewd by most people should be 752 (work pc mac IE NS etc etc)
If you want no scrollbar (for main page let's say) 752x450

Now if you do a site that aim specifically designer , young people and such..
resolution can go up to 1024. (or more for a experimental site)

But whatever you do, your code should allow you to re-size the page without having "weird" looks to it ( meaning, if the person put the page too small, scroll bar will automatically added)
(relative positioning should be use with caution :))
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post by [n00b] »

ok guys, thanks everyone for their replies
Post Reply