Forums

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

Home Forums CSS vertical-align

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43675
    nuodas159
    Participant

    http://codepen.io/anon/pen/JxkcK

    How to do that `

      ` would be in vertical-align: middle?
    #129757
    Paulie_D
    Member

    I’m not sure what you mean.

    What needs to be aligned? The menu, the list items or the links?

    Do you have an example of what you are trying to do?

    #129759
    nuodas159
    Participant

    I want to do that ul would be in the page horizontal and vertical center.

    #129762
    Paulie_D
    Member

    Is it the only thing on the page. Frankly without seeing what it is you are trying to do it is hard to help.

    #129770
    Paulie_D
    Member
    #129779
    Merri
    Participant

    Nothing super new to the concept, just thought a way to do it without `display: table;` or a pseudo element:

    http://codepen.io/Merri/pen/DyuhF

    Downside: can’t use `rem` anymore.

    Unique feature: body element is the element that is centered in the middle, so no need for extra container element.

    #129795
    nuodas159
    Participant

    both thx. :)

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