The issue is that your logo is overflowing its allocated size, as defined by the .navBox class.
This is what your header looks like as is:
This is what it looks like when applying overflow: hidden to the navBox class. As you can see, the logo is oversized for its container. You need to limit its height and width OR remove the limitation from the container.
Removing the height attribute from navBox makes it look like this:
Looks centered to me.
Problem :
I am building my own personal web page, and while doing the “header” I wasn’t able to align my “a” tags to the logo… I’ve been trying everything, but there are no solutions.
This is my code. If I am wrong in some part, please explain me to not commit the same mistake.
I try changing position values, I tried giving padding-top, top, margin, nesting into antoher div. But I can not achieve what I will like to be.
Here is a ScreenShot of my page.
Comments
Comment posted by paxanoA1607
Hi, to be honest, this does not fix my problem, I understand what you were trying, but it did not worked. Anyway, thanks for the advice, and how does it work.