This is regarding the website mothdesign.dk
As you can see the menu is aligned to the right for some reason. I have looked everywhere and I can’t see why. I then tried to “force” it to be center-aligned with different CSS, but nothing works for me.
Anyone of you that might be able to help me with the correct CSS I need or tell me what I have done wrong?
Really appreciated!
I added this:
.onepress-menu {
//your code
float: right;
//mine code
float: none !important;
width: fit-content;
margin: 0 auto;
}
Mine code sets the float to none(notice the !important keyword), width to "fit-content" so it fits its width to content's width, "margin: 0 auto" sets top and bottom margins to 0 and sets left and right margins to equal values.
Here is this code implemented: image