View Full Version : Resizing your page...?
Squintz
07-25-2002, 03:42 PM
I always see websites that when you maximize the page size the images adjust to still fit the page....How is this done?
Quiet Storm
07-25-2002, 07:01 PM
Are you talking about the background image or general layout?
Squintz
07-25-2002, 07:04 PM
The general layout...
Quiet Storm
07-25-2002, 07:21 PM
It's done using percentages on TABLES.
<TABLE WIDTH="100%">
<TR><TD WIDTH="25%">
asdf
asdf
asdf
asdf
</TD><TD WIDTH="75%">
1234
1234
1234
1234
</TD></TR>
</TABLE>
When one uses %'s, you can resize the page and the contents in each table <TD> will be a percentage of the screen width.
Squintz
07-25-2002, 07:44 PM
Thanx.....So if i put an image inside a Cell and tell the table to be 100% of the width of the page that image will also change its size fitting the page width 100%....
Note: This forum is an example of what i mean. If you look at the top its all black with words....But imagine if that black with words was actually an image...i want it to retain its uniformed look fitting the entire page when i maximize the site
Roy Sinclair
07-25-2002, 08:54 PM
Originally posted by Squintz
Thanx.....So if i put an image inside a Cell and tell the table to be 100% of the width of the page that image will also change its size fitting the page width 100%....
Note: This forum is an example of what i mean. If you look at the top its all black with words....But imagine if that black with words was actually an image...i want it to retain its uniformed look fitting the entire page when i maximize the site
Not quite, you also need to tell the image that it's width is 100% too.
boxer_1
07-25-2002, 09:28 PM
Moving to HTML & CSS Forum which is more relevant to this topic ;).
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.