Hi there fellow coders,
I recently used this example to code my navbar which has worked out stupendously I might say.
However, I had a problem. The full desktop version of the navbar wasn’t centering but aligning to the left so I added the below code to the CSS and put it at the top level
.centrenavbar {
display: flex;
justify-content: center;
It worked perfectly but I have an issue when the navbar reverts to mobile mode. The three stacked horizontal lines representing the navbar are centered which is what I want, but when you click on it, it jumps to the right margin. I haven’t been able to work out how to get it to stay centered.
Thanks.