[thelist] 1-line cells in tables

Aylard JA (James) jaylard at equilon.com
Fri May 12 18:05:35 2000


Michael Galvin wrote:
<snip> So I'm using <table width="100%">
> and various percentages for each row to make sure it fills the entire
width.
> However, if the user has a smaller resolution than my own, I don't want
the
> table to start word-wrapping lines - I want it to truncate them </snip>

	A solution that will work in IE5+ is to use the CSS2 property
"table-layout: fixed;" on your <table> element in conjunction with
"overflow: hidden;" and a fixed height (such as 1.5em) on your table cell.
Granted, if this page will be used outside of an IE5-based Intranet, this
solution won't cover a fair percentage of your audience. Otherwise, you
would probably need to do some server-side truncation of your data (a highly
inexact approach as far as I can see), or use some type of Java applet.

James Aylard
jaylard@equilon.com