Problem with background color

So i did some padding to my anchors of navigation bar, i used only achors and not the Logo but the result i get is this:

Why is this happening?

Take a look at this block of html:

     <ul>
        <div class="logo">Logo</div>
        <li><a href="#">Home</li>
        <li><a href="#">Portfolio</li>
        <li><a href="#">About</li>
        <li><a href="#">Contact</li>
      </ul>

and try to find out what tag elements you are not closing

I honestly dont see whats the problem. I’ve been trying to figure this out for 10 hours.

How do you close an anchor tag like <a href="#">?

1 Like

Thanks, i didnt notice it, sorry anxiety from all of this.

At the beginning, when there is a lot of info, it may be some kinda overwhelming but with time and practice you will feel comfortable with it.

Tip: In codepen and most of the editors if you write a from anchor and hit the tab it will autogenerate the entire html tag, so you are sure each element is properly closed. It is valid for all html tags.