The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Can't get menu centered.
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,
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.
Thanks! I removed it, still doesnt seem centered. Think I messed something else up before your reply.
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.