[Support request] Setting sections to 50% width and centering things vertically

Home Forums Support [Support request] Setting sections to 50% width and centering things vertically

Home Forums Support Setting sections to 50% width and centering things vertically

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #471297
    Katarzyna

    Hi there
    I’ve got a pro version. I’d like to set sections to 50% width, so e.g. “Woda” section would be on the left and “Scieki” would be on the right, both of them taking 50% of the content width. I’ve tried everything that I could come up with, nothing works as it should, please help.
    And second question is how to position the image in the middle of section vertically, regardless of how long it would be? The display: flex doesn’t work here as it seems to damage the overall structure. I’ve tried to do that with text also, but it doesn’t work either.
    Thank you
    k

    #471475
    Leo
    Staff
    Customer Support

    Hi there,

    You would need to create columns within sections: https://docs.generatepress.com/article/creating-columns/

    Centering vertically can be tricky so I would suggest just fine tuning padding top. Or check out this page: https://css-tricks.com/centering-css-complete-guide/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.