Forums

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

Home Forums CSS Can't get menu centered.

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #246971
    LinusFree
    Participant

    Hi,

    If you look over here: http://www.linusfrimodig.se/karin.

    I want the menu with “Bath, Bedding” etc. centered but the account and cart to the right. Have tried everything I can come up with but can’t get it to work.

    Maybe some of you geniuses can inspect some of the elements and help me out with some Custom CSS to the wordpress theme.

    Thanks in advance,

    Linus

    #246977
    Paulie_D
    Member

    One of the ancestor divs has these classes attached

    <div class="flex-col hide-for-medium flex-left">
    

    If you remove the flex-left the menu centers.

    #246982
    LinusFree
    Participant

    Thanks! I removed it, still doesnt seem centered. Think I messed something else up before your reply.

    #246985
    Paulie_D
    Member

    It’s as close to centered as you will get using flexbox.

    There is no availability to center an element in flexbox AND have something else “flexed” left or right.

    My suggestion would be to position the header-right absolutely.

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