Forums

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
    Posts
  • #161587
    Joseph Markus
    Participant

    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.

    http://codepen.io/jmarkevicius/pen/GDcLx

    #161596
    Paulie_D
    Moderator

    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?

    #161600
    Joseph Markus
    Participant

    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.