Forums

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

Home Forums CSS Gallery Image Align Problems

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43674
    georgearnall
    Participant

    Hi,
    I am trying to display products in a tile/gallery pattern. However, I also need the items to be centered in there parent ul. The problem I am having is that when I center the items, the ones that are shorter than the tallest in its row goes to the bottom of its parent. [CodePen](http://cdpn.io/yLgdF “CodePen”) This may be my head having difficulty finding a solution or it may be more complicated than I thought. Can anyone help? Thanks

    #129760
    wolfcry911
    Participant

    add vertical-align: top; to the li

    #129761
    georgearnall
    Participant

    Yes, finally!! This problem has been driving me mad but of course I forgot about that rule.

    Thanks for your help :)

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