473,587 Members | 2,230 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto-Resize a Web site.

7 New Member
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 9393
iam_clint
1,208 Recognized Expert Top Contributor
you need to use percentages like height="100%" width="100%"
Sep 25 '07 #2
dmjpro
2,476 Top Contributor
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 Top Contributor
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 New Member
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 Recognized Expert Moderator MVP
You've set the table width as "1343". Change that to 90% or whatever percentage you want.
Sep 25 '07 #6
ChetG
7 New Member
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 Recognized Expert Moderator MVP
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 New Member
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 Recognized Expert Moderator MVP
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

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

Similar topics

2
2597
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 that follows C++ RAII pattern. Of course Python objects are not statics like in C++, but in C++ the auto_ptr class is used for enforcing this...
1
34309
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 the page to auto-refresh every 4 seconds....if the user un-checks the checkbox, I'd like to turn off the auto refresh. The page is as follows:
5
6093
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 of the screen. I want it to only extend as far as it needs to to nicely contain the content within (a couple of links). Is width: auto the wrong...
20
2847
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
5057
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 do with the 1st column ? (Below I have a "1" in place for now). Also, Does the datase.AcceptChanges(); updates the changes to the database? Which...
5
5036
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 CurrentUICulture to what's specified in the querystring. Since I want to allow UICulture auto detecting, I add UICulture = "auto" to page directive on...
5
3254
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 I change 'auto' to 0 for left and right margin values; I have to leave those at 'auto'.. so I would like to know what exactly means 'auto' -- what...
22
3050
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 like that: int main(char argc, char *argv, char *env) { try { auto Exception mainException(1); mainException.setErrNo(42);
2
3062
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 ("auto") in JavaScript - however instead of getting "auto" value, I get calculated height. In IE and Opera it simply returns "auto". Any ideas how to...
21
6321
by: JOYCE | last post by:
Look the subject,that's my problem! I hope someone can help me, thanks
0
8205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.