Computing.Net > Forums > Web Development > Keep Web Side in perspective.

Keep Web Side in perspective.

Reply to Message Icon

Original Message
Name: lucky1
Date: November 23, 2004 at 13:57:44 Pacific
Subject: Keep Web Side in perspective.
OS: wnn98se
CPU/Ram: 1.4 AMD / 512
Comment:

Hi,

Is there a way to keep the contents of a web site in perspective as it is reduced in size.

My website goes bonks as it is resized from the lower right corner !!!!!!!!!!

I am using HTML and a bit of CSS. . . . .

lucky1


Report Offensive Message For Removal


Response Number 1
Name: Don Arnett
Date: November 23, 2004 at 14:17:10 Pacific
Subject: Keep Web Side in perspective.
Reply: (edit)

Depends on exactly what you mean.

If you want it to remain the same, put the entire page contents inside a DIV with it's width set to the desired width.


[DIV style="width:800"]
.
. all of page HTML
.
[/DIV]

If the browser is sizeed smaller, the page will look the same but scrollbars will be added and the user will have to scroll


If you want the page to get smaller, things closer together as the page gets smaller, you'd position things with DIV and TABLE tags and use percentages for widths of objects. This will only work to an extent as it wouldn't change the size of images. But, in theory, you could use javascript to change the image sizes also. I think that this would be a lot of work and probably wouldn't work well.

Be sure to come back and let us know if our suggestions helped!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Keep Web Side in perspective.

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge