- This topic is empty.
- The forum ‘CSS’ is closed to new topics and replies.
Hi. I’m trying to set a DIV as a table and a SPAN within the DIV as a table-cell. The SPAN should be the same height as DIV and display text right in the middle no matter the length of the text.
I have to ask…why are you using table styles…it doesn’t look necessary from your design?
Surely there must be a better way?
Span is displayed as a table-cell in order to vertically align the text in the box that is the same height as the parent element. That doesn’t seem to work, so that’s why I’m asking for a little bit of help:-)