Problem with background color

Problem with background color
0

#1

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?


#2

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


#3

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


#4

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


#5

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


#6

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.