But I tried putting margin-left: auto; margin-right: auto;
in the margin-left: 40% place, but the image goes to the left
How can I center it, even on mobile devices?
I gave a width to logo, since it’s just the image there. And it never resizes.
Now, that is half the equatin. Now it’ll center within #main-header. Which has a 960px width forever. That width needs to be removed. 99% of the time, you don’t want to set widths on containers.
But if I remove the width on #main-header, the menu (#top-categories) snaps to the left, (which I cant seem to center) also the #top-navigation also moves. How can I keep those 2 elements in the same place though?