Hallo zusammen!
Ich bin noch ein Anfänger, daher brauche ich Unterstützung.
Ich möchte gerne den Inhalt meiner Menübar zentrieren, kriege es aber einfach nicht hin :S
Ich hau mal ein Foto und den Code dazu hier hinein.
Danke schon jetzt, für Eure Hilfe!
![1.png 1.png](https://www.html.de/data/attachments/5/5548-06922825cfc6b2dfad83186554fcaf9a.jpg)
Ich bin noch ein Anfänger, daher brauche ich Unterstützung.
Ich möchte gerne den Inhalt meiner Menübar zentrieren, kriege es aber einfach nicht hin :S
Ich hau mal ein Foto und den Code dazu hier hinein.
Danke schon jetzt, für Eure Hilfe!
<!DOCTYPE html>
<html>
<head>
<title>1. FC Obotrit Bargeshagen e.V.</title>
<style>
body {
background-color:#81BEF7;
}
ul {
list-style-type: none;
margin: 500;
padding: 100;
overflow: hidden;
background-color: #38444d;
}
li {
float: left;
}
li a, .dropbtn {
display: inline-block;
color: white;
text-align: right-aligned;
padding: 15px 100px;
text-decoration: none;
}
li a:hover, .dropdown:hover .dropbtn {
background-color: red;
}
li.dropdown {
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #aeaeae;
min-width: 290px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: center;
}
.dropdown-content a:hover {background-color: #f1f1f1;}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
</head>
<center>
<body>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a></li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Mannschaften</a>
<div class="dropdown-content">
<a href="#">Herren</a>
<a href="#">Alte Herren</a>
<a href="#">A - Junioren</a>
<a href="#">B - Junioren</a>
<a href="#">C - Junioren</a>
<a href="#">E - Junioren</a>
<a href="#">F - Junioren</a>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Verein</a>
<div class="dropdown-content">
<a href="#">Der Vorstand</a>
<a href="#">Satzung</a>
<a href="#">Geschichte</a>
<a href="#">Sponsoren</a>
<a href="#">Archiv</a>
<a href="#">Downloads</a>
<a href="#">Datenschutz</a>
<a href="#">Impressum</a>
</div>
</li>
</ul>
<h3>Dropdown Menu inside a Navigation Bar</h3>
<p>Hover over the "Dropdown" link to see the dropdown menu.</p>
</body>
</center>
</html>
![1.png 1.png](https://www.html.de/data/attachments/5/5548-06922825cfc6b2dfad83186554fcaf9a.jpg)