Forum Moderators: open

Message Too Old, No Replies

fixed width table that doesn't stay fixed

dynamic sized with ASP

         

txbakers

9:57 pm on Dec 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This has been bothering me. I have a fixed width table of 745 with 9 columns.

I also have some ASP code in there to show a 10th column if requested. When the 10th column in requested, I increase the table width to 845, and give column 10 a width of 100.

On paper it looks right. When I switch back and forth between the two pages though, the 10 column layout makes the other columns smaller. When I view source it looks like it should, yet on the screen it isn't.

Any ideas why this should happen?

SuzyUK

10:08 pm on Dec 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



are all your other columns specified widths or percentages?
probably a silly question

I also think row span and/or col span could be a contributing factor, but can't tell without code

feel free to sticky some code as I also work with ASP pages...it might help

Suzy

tedster

12:42 am on Dec 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, browsers are allowed a lot of liberty when sizing tables. Depending on what their code calculates they need to display the content, they can and do override width and height attributes at will.

txbakers

1:50 am on Dec 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



they can and do override width and height attributes at will

That's probably the explanation. Annoying - that's why I used fixed width tables in the first place, to avoid the automatic resizing from percentages.

Suzy - all the code for that table is fixed. There is one table above it set to 100%, but it's not nested. That table closes, and the fixed width table begins. I'll sticky the code.

Thanks.