Forum Moderators: open

Message Too Old, No Replies

Tables in HTML

absolute sizes mixed with variables not working out

         

psychomonkeyCK

8:24 pm on Jan 2, 2003 (gmt 0)

10+ Year Member



I have a webpage (in development) which uses tables for the layout I have a lyout as below:

------------------------------
¦ ¦
¦ ¦
¦_____________________________¦
¦______¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦______¦ MAIN ¦
¦ ¦ ¦
¦ ¦ ¦
¦______¦ ¦
¦__var_¦ ¦
¦___2 _¦______________________¦

Every box apart from VAR (variable) and MAIN are set to absolute, all also have background graphics set behind the cells apart from those two (note. "2" does not have a background set either). VAR has a set width but not a set height. The idea is that when MAIN overflows VAR will stretch and none of the cells set with heights will move. In relaity all the cells stretch which is not what I want.

Any suggestions?

CK

SuzyUK

11:06 am on Jan 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



psychomonkeyCK

having trouble understanding your question, the ASCII doesn't explain (for me anyway!;))

when you say expand do you vertically or horizontally?

could you post some abbreviated code? or sticky a link

Suzy

psychomonkeyCK

12:29 pm on Jan 3, 2003 (gmt 0)

10+ Year Member



Ahgg my ASCII went all wrong!

I'll post you a sticky link.

CK

Red_Eye

1:05 pm on Jan 3, 2003 (gmt 0)

10+ Year Member



Hi psychomonkeyCK,

I have used the same sort of layout for some of my sites when I want an specific image around content to resize depending upon the amount of content. I have got round this by using spacer images. I normally put a 1 pixel spacer image into a cell that I don't want to resize and set the size of the spacer to the size of the cell. The cell should then keep it's size.

Hope this helps.

psychomonkeyCK

5:06 pm on Jan 3, 2003 (gmt 0)

10+ Year Member



Thanks Red eye but all that happnes then is I get gaps appearing between my cells without the main box overflowing!

CK

Red_Eye

10:30 am on Jan 4, 2003 (gmt 0)

10+ Year Member



Ok, is it possible to take a look at the code you are having problems with. Sticky me a link.