What is the best way to make a table (not necessarily using the table tag) where each row has a fixed height and fills the entire available horizontal space and one of the columns has a dynamic width that shows as much text as possible without line breaking? Like Gmail and Google Reader.
I really like that way of presenting information. The expandable fixed height row is a good way to scan through a list of data, IMHO.
See: http://jsfiddle.net/gtRnn/
Each property is doing something useful:
white-space: nowrapforces the text to stay on one line.overflow: hiddenstops this.text-overflow: ellipsisworks in “all browsers”, except Firefox (support is planned)borderis there for no reason.