459,912 Members | 1,710 Online
Need help? Post your question and get tips & solutions from a community of 459,912 IT Pros & Developers. It's quick & easy.

# table alignment problem

 P: n/a Hi. I'd like a little help working out what is going on with what should be a simple alignment problem. I have an outer table with a
which has an inner table. The specified as width=200 has the inner table which is width=100% But I can't make the inner table appear as 100% the width of the cell unless the cell is at least half the width of the outer table. If this is normal behaviour, why is it like that? It kinda defies my view of logic.

Jul 23 '05 #1
2 Replies

 P: n/a "Andy Flash" wrote in message news:k2********************************@4ax.com... Hi. I'd like a little help working out what is going on with what should be a simple alignment problem. I have an outer table with a
which has an inner table. The specified as width=200 has the inner table which is width=100% But I can't make the inner table appear as 100% the width of the cell unless the cell is at least half the width of the outer table. If this is normal behaviour, why is it like that? It kinda defies my view of logic.

I think you'll find the behaviour is browser-dependent. Firefox behaves the way you expected, IE doesn't. -- David Biddulph Jul 23 '05 #2

 P: n/a Andy Flash wrote: I have an outer table with a
which has an inner table. http://dorward.me.uk/www/nested/ The specified as width=200 has the inner table which iswidth=100%But I can't make the inner table appear as 100% the width of the cellunless the cell is at least half the width of the outer table.

200 + 394 = 594 594 < 780 How is the browser supposed to lay out the main table? There are a few guidelines to remember: * cell widths are just suggestions, browsers should ignore them if the content doesn't fit. * table widths tend to be given higher priority then cell widths What I think IE is doing is that it is setting the inner table to be 200px wide, 100% of 200px is 200px. But because 594 != 780 it is then adjusting the widths of the outer table cells to meet the specified table width. But it is not keeping the width of the inner table to the previously defined amount. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh Jul 23 '05 #3

### This discussion thread is closed

Replies have been disabled for this discussion.