When using display: table-cell, is it also possible to use overflow: auto? I have tried this, and it seems to work in IE, but not in Firefox or Netscape. I know that IE doesn't always implement the standards they way they are supposed to, so I wasn't sure if this was even possible. My initial guess would be to say "no", b/c if the intent of display: table-cell is to make an element behave as if it were a td, then it isn't possible (at least I don't know how to). If anyone has an knowledge about this, could you please pass it along? Or if you know a way to get around this limitation (if indeed it is a limitation at all), that would be appreciated as well.I don't even see the utility of display:table-cell. I'd use an appropriately styled div or span or other standard element to do the presentation. Obviously a div will understand overflow.Bear in mind (from the CSS2 specification):
User agents may ignore these 'display' property values for HTML documents, since authors should not alter an element's expected behavior.
The display: table class of values were designed for non-HTML languages which use CSS, such as XML, for which it may be necessary to define arbitrary table elements.
AdamThank you both for the reply... I was mocking up some templated code that I had seen that laid out a page in a way I have been trying to recreate, without success. I guess it is back to the drawing board.....
User agents may ignore these 'display' property values for HTML documents, since authors should not alter an element's expected behavior.
The display: table class of values were designed for non-HTML languages which use CSS, such as XML, for which it may be necessary to define arbitrary table elements.
AdamThank you both for the reply... I was mocking up some templated code that I had seen that laid out a page in a way I have been trying to recreate, without success. I guess it is back to the drawing board.....