Currently, I have a collection of elements with the class .message
that are displayed as table-row
. I need some of these messages to have a red triangle positioned at the bottom center. However, the triangle element cannot be placed directly inside the .message
cell.
While achieving this effect is straightforward when the display property of .message
is set to block
, I'm encountering issues when it is set to table-row
. In the provided example, all the triangles are incorrectly positioned and the second cell does not extend to fill the entire row (excluding the .opener
element).
I'm seeking help in understanding what I might be overlooking or missing in my implementation.
For further clarification and testing purposes, you can refer to the following JSBin link: Fiddle for the tests (and clarity)
Hovering over the left cells in the example will illustrate why I require table-cell
elements. Specifically, I need to leverage the full range of positioning and dimension benefits offered by table-cell elements (ensuring both cells have equal height and the right cell occupies the remaining space on the row).
Compatibility is essential, targeting support for Firefox and Chrome browsers.