471,599 Members | 1,038 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

Auto Resize a website

7
I am re-designing my website and I want it to resize itself according to each visitors browser and resolution settings. I have been trying for hours to solve this issue but have found nothing. Here is the URL for the problem page. Anyone with any advice would be greatly appreciated.

http://www.chetgassett.com/test/testindex.html


Thanks, ChetG
Sep 25 '07 #1
3 3012
drhowarddrfine
7,435 Expert 4TB
HTML cannot do this. You need to ask on the javascript board.
Sep 25 '07 #2
Yeah, you can only do this with JavaScript, and is a bit complicated.
The only thing you can do with HTML or CSS is instead of specifying the height and width as pixels. put the values in as percentages. that way the image or table or whatever is always that percentage width or height of the browser.

so if you done this: <img src="" width="90%" height="90%" />, the image will always be 90% the height and 90% width of the browser, even if it gets resized

Again, you should ask the javascript forum for the actual way.
Sep 25 '07 #3
ChetG
7
Thanks a lot to both of you!
Sep 25 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by DejaUser | last post: by
reply views Thread by 23s | last post: by
4 posts views Thread by reycri | last post: by
10 posts views Thread by ChetG | last post: by
3 posts views Thread by =?Utf-8?B?UiBSZXllcw==?= | last post: by
2 posts views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.