0

I need to fix something in my HTML and CSS code for a navigation bar

Here's my HTML code, <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <link rel="stylesheet" href="style.css"> <body> <nav> <label class="logo">DesignX</label> <ul> <li><a class="active" href="#">Home</li> <li><a href="#">Address</li> <li><a href="#">Content</li> <li><a href="#">Feedback</li> <li><a href="#">Donate</li> </ul> </nav> </body> </html> Css code here, *{ padding: 0; margin: 0; text-decoration: none; list-style: none; box-sizing: border-box; } body { font-family:Impact; font-weight: normal; } nav{ background-color: #3FE5F0; height: 60px; width:100%; } label.logo{ color:white; font-size: 40px; line-height: 60px; } ul { float: right; margin-right:20px; } nav ul li{ display:inline-block; line-height: 60px; margin: 0 15px; } nav ul li a{ color:white; font-size: :17px; text-transform:uppercase; } a.active,a:hover{ background:red; } Summary: I was trying to create a navigation bar and when I created one almost it gave me lines in between them which can be seen in the image link given below, it's the hovering effect which is bugged from my knowledge, please help me out if possible.

13th Oct 2020, 11:30 AM
Thomas Abraham
Thomas Abraham - avatar
8 Answers
13th Oct 2020, 12:12 PM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar
+ 1
Please create a new code bit and send us a link
13th Oct 2020, 11:31 AM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar
+ 1
The coding, https://appp.me/cyhh9F The image of the unexpected result, https://ibb.co/8nydZXV
13th Oct 2020, 11:36 AM
Thomas Abraham
Thomas Abraham - avatar
+ 1
Add border left of the button of navigation it's the best way to create this
13th Oct 2020, 11:39 AM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar
+ 1
Eyo, I've fixed the problem, I'll anyway check that video. I just had to put the end tags for 'a', I was careless to add </a> for '<a href="#">' in my code.
13th Oct 2020, 12:20 PM
Thomas Abraham
Thomas Abraham - avatar
0
I can't see code
13th Oct 2020, 11:38 AM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar
0
Scropion, can you give me an example as to how you do that? I mean the Border left of the button of navigation? Sorry I am kinda strange with these things being a beginner.
13th Oct 2020, 12:00 PM
Thomas Abraham
Thomas Abraham - avatar
0
Wait
13th Oct 2020, 12:03 PM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar