Click to See Complete Forum and Search --> : auto resolutions?
greglutz
01-24-2003, 12:43 AM
How can you make an html webpage automatically fit to the user's resolution?
Say the user has his/her monitor set to a 800 X 600 resolution, but you made your website on a 1024 X 768 resolution. How do you make sure that they will see your website with the same type of properties that you made it with?
Nedals
01-24-2003, 01:58 AM
Without any other data, use "xx%" in your table widths. If you've got very large graphics, you're stuck.
greglutz
01-28-2003, 01:25 PM
I'm not getting what I'm looking for.
Is there a code or something that can change the user's resolution automatically?
Is there a code to detect what kind of resolution the user has and then send them to the appropiate web page, or adjust the webpage to fit their resolution?
Can anyone help?
Where else can I look, who else can I ask?
Thanks,
Greg
email me if you want to (gregorymichaellutz@hotmail.com)
Charles
01-28-2003, 02:56 PM
Is there a code or something that can change the user's resolution automatically?No.Is there a code to detect what kind of resolution the user has and then send them to the appropiate web page, or adjust the webpage to fit their resolution?If the user is using JavaScript, and one in ten times they are not, then you can know the number of pixels on the screen in each direction but you cannot know the size of the window on that screen or how many pixels make up an inch.Can anyone help?The solution is to make a page that works with any screen as well as with no screen at all. Stefan is pretty good at explaining how to do this. However, if you are particularly thick headed then he will be of no use to you.Where else can I look, who else can I ask?Try publishing your page in PDF.
Nedals
01-28-2003, 06:13 PM
As Charles stated, there is no way to change the user's resolution. Again, as stated, you could, using Javascript, get the current resolution and set a new page. BUT DO NOT DO THIS. If Javascript is disabled it won't work.
SO....
Design you page to look good at 800x600 and do not fix any of your table widths.
Do not use <table width=800 etc.....>
Instead use <table width="100%" etc....>
This applies to any widths you define.
Now when the page is viewed at 1024x768 or whatever, it will expand to fill the browser window.
There are ways to do all this using CSS and I guess Stefan is the 'resident' expert.
Hope this helps.