473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Auto-Resize a Web site.

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
10 9375
iam_clint
1,208 Expert 1GB
you need to use percentages like height="100%" width="100%"
Sep 25 '07 #2
dmjpro
2,476 2GB
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
Look at this Code.
Expand|Select|Wrap|Line Numbers
  1. var width,height;
  2. if(typeof window.pageX){ height = window.pageY;width = pageX;}
  3. else if(typeof window.screenX){height = window.screenY;width = screenX;}
  4. else {height=document.body.offsetHeight;width=document.body.offsetWidth;}
  5.  
Best of Luck with that. :-)

Kind regards,
Dmjpro.
Sep 25 '07 #3
dmjpro
2,476 2GB
you need to use percentages like height="100%" width="100%"
This one would be more appropriate.

Kind regards,
Dmjpro.
Sep 25 '07 #4
ChetG
7
I tried to use the Javascript but I don't know enough about Javascript so I don't believe that I am utilizing it correctly.

I have tried making the width and height of the table into percentages but that isn't changing anything. Do I need to go through and make every slices width and height a percentage too?
Sep 25 '07 #5
acoder
16,027 Expert Mod 8TB
You've set the table width as "1343". Change that to 90% or whatever percentage you want.
Sep 25 '07 #6
ChetG
7
You've set the table width as "1343". Change that to 90% or whatever percentage you want.

I have done that, but it still isn't resizing to a smaller size when other people try to view it. It will get larger, but not smaller.
Sep 25 '07 #7
acoder
16,027 Expert Mod 8TB
I have done that, but it still isn't resizing to a smaller size when other people try to view it. It will get larger, but not smaller.
Your images are too large. You'll have to resize them.
Sep 25 '07 #8
ChetG
7
Your images are too large. You'll have to resize them.
The problem with resizing the images is that they're being used as part of the layout itself.
Sep 25 '07 #9
acoder
16,027 Expert Mod 8TB
The problem with resizing the images is that they're being used as part of the layout itself.
But if the images are too large and you won't resize them, the website is not going to resize.
Sep 25 '07 #10
ChetG
7
This page no longer exists; nor does the problem. Feel free to read the blog it's attached to, but you won't see the issue described in the question.
Jan 15 '11 #11

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

Similar topics

2
by: Manlio Perillo | last post by:
Hi. This post follows "does python have useless destructors". I'm not an expert, so I hope what I will write is meaningfull and clear. Actually in Python there is no possibility to write code...
1
by: Lew | last post by:
Hi all, I'm trying to create a page that has a user-selectable page auto-refresh option (IE 5.5). Essentially, it's a page that contains a checkbox, when the user checks the checkbox, I'd like...
5
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
20
by: Vijay Kumar R. Zanvar | last post by:
Hello, Unlike register, auto keyword can not be used to declare formal parameter(s). Is there any specific reason for this? Kind regards, Vijay Kumar R. Zanvar
6
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I...
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
5
by: maya | last post by:
at work they decided to center divs thus: body {text-align:center} #content {width: 612px; text-align:left; margin: 0 auto 0 auto; } this works fine in IE & FF, EXCEPT in FF it doesn't work if...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
2
by: Piotr K | last post by:
Hi, I've encountered a strange problem with Firefox which I don't have any idea how to resolve. To the point: I've <divelement with a style "height: auto" and I want to retrieve this value...
21
by: JOYCE | last post by:
Look the subject,that's my problem! I hope someone can help me, thanks
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.