Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML table cell - forcing fixed width?

Status
Not open for further replies.

tcstom

Programmer
Aug 22, 2003
235
GB
I have two tables containing financial data. I need the first three columns of each table to always line up vertically i.e. always have the same width. Therefore I've made these cells fixed width. However, when the browser window is so narrow that none of the other cells can be squashed any further then these three cells start to squash themselves (sorry, don't know the jargon for 'squash'!). Is there any way to force a table cell to maintain a fixed width regardless of any other factors? I don't want to use a width or even a min-width on the table because I want it to be as readable 800x600 as with any other resolution. Help appreciated.

Tom
emo_big_smile.gif
 
<table>
<tr>
<td NOWRAP>The text here will never wrap onto two lines now
</td>
</tr>
</table>
 
Thanks guys. The table-layout:fixed is what I was looking for because I was happy for cell contents to wrap as long as the cells stayed fixed. How had I never heard of that useful little attribute?! Thanks again.

Tom
emo_big_smile.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top