Ich versuche, das folgende horizontal entlang der Seite statt vertikal zu machen. Ich würde dies gerne tun, da es sich um einen Header am oberen Rand der Seite handeln soll. Vielen Dank.Erstellen einer vertikalen Kopfzeile horizontal
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: #f1f1f1;
}
li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
/* Change the link color on hover */
li a:hover {
background-color: #555;
color: white;
}
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#about">About</a></li>
</ul>
Sie haben noch kein '' gestartet, aber Sie haben ein End-Tag! –
Es gibt keine ''! –
Downvote für Fehlercodierung. Kein schließendes Tag wie –