The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Vertical-align issues

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #161587
    Joseph Markus

    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?

    Joseph Markus

    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:-)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.