• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Frage Navbar

TheWolf

Neues Mitglied
Hello, I have a problem by making a navigation bar. I watched many YouTube tutorils and copied everything. But the problem is if I want too see it on Google or edge and want to actualis it I can only see the logo and the link buttons under it but not next too it. Does any body know what to do ?

Thank you for your answer.
 
Werbung:
Werbung:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Responsive Navbar</title>
<meta name="viewport" content="width=device-width, inital-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
<label class="logo">DesignX</label>
<ui>
<li><a href="#">Home</a></li>
<li><a href="#">Become customer</a></li>
<li><a href="#">Become Itler</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Legal</a></li>
</ui>
</nav>
</body>
</html>

*{
padding: 0%;
margin: 0%;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
body{
font-family: montserrat;
}
nav{
background-color: #0082e6;
height: 80px;
width: 100%;
}
label.logo{
color: white;
font-size: 35;
line-height: 80px;
padding: 0 100px;
font-weight: bold;
}
nav ul{
float: right;
margin-right: 20px;
}
nav ul li{
display: inline-block;
line-height: 80px;
margin: 0 5px;
}
nav ul li a{
color: white;
}
 
Du hast einen Schreibfehler beim Element <ui> - das müsste <ul> heißen (kleines L am Ende). Wenn Du das anpasst greift auch dein CSS.
 
Werbung:
Zurück
Oben