Closed Thread Icon

Preserved Topic: Tables and size Pages that link to <a href="https://ozoneasylum.com/backlink?for=20442" title="Pages that link to Preserved Topic: Tables and size" rel="nofollow" >Preserved Topic: Tables and size\

 
Author Thread
KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 02-18-2002 16:13

I was wondering... how do i make sure that certain cells stays the same when the table stretches and certain ones stretches with the table?

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 02-18-2002 16:26

Define the ones you want to stay the same with exact width values, and the ones you want to stretch with percentages.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-18-2002 16:27

This is not tested on my end but give it a shot.

On the cells that you want to stay the say, use exact sizes: width="100px" and then on the cells that you want to stretch make them percentages: width="10%".

Test it in a few different browsers and at different screen resolutions. (I don't think I really need to tell you the obvious)

Most of the time that I do stuff like this I use nested tables to that table will remain to be the same size always.

Pugzly beat me to it. To get the best effect I think you will have to define the exact width for the table as well.

Later,
C:\


~Binary is best~

[This message has been edited by CPrompt (edited 02-18-2002).]

Ducati
Paranoid (IV) Inmate

From: in your head
Insane since: Feb 2001

posted posted 02-18-2002 17:12

If you are using one table you can make only one cell auto strech (if I am not miskaken - it's my Dreamweaver talk )

Oh wait, no! You can make them strech.. just use % instead of pixels...



[This message has been edited by Ducati (edited 02-18-2002).]

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 02-18-2002 19:41

okay... iwas thinking abouit percentage but wasn't sure... but would say 10% stretch the whole size i want to.... or do i have to find right to the percentage... or would 100% stretch the whole thing????

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-18-2002 19:56

Mixing absolute values and percentages is a bad idea.

Read this page: http://www.w3.org/TR/html401/struct/tables.html

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 02-18-2002 21:57

Mixing pixel defined widths and % defined widths in tables is what a good chunk of web design has been based on for years Slime...there are many sites that could not have been done without that method.

A width of 100% in the cell(s) you want to stretch will do the trick karn.



KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 02-18-2002 22:13

thanx dl-44

« BackwardsOnwards »

Show Forum Drop Down Menu