Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
a.titel:link {
color: red;
}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Navigation</title>
<style>
* {
margin:0;
padding:0;
text-decoration: none;
list-style:none;
border:none;
}
nav {
background: #eee;
text-align: center;
}
nav a {
padding:10px 20px;
display:block;
text-align: center;
color:#000;
}
nav ul li {
display:inline-block;
position: relative;
}
nav ul li a:hover {
background: #ddd;
}
a.titel {
color:#f00;
}
/* Oder alternativ ohne Klasse das 4. Element
li:nth-child(4) a {
color:#f00;
}
*/
</style>
</head>
<body>
<nav>
<ul>
<li><a href="#">News</a></li>
<li><a href="#">Team</a>
<li><a href="#">Studio</a></li>
<li><a class="titel" href="referenzen.html">Referenzen</a></li>
</ul>
</nav>
</body>
</html>
Code:<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <title>Navigation</title> <style> * { margin:0; padding:0; text-decoration: none; list-style:none; border:none; } nav { background: #eee; text-align: center; } nav a { padding:10px 20px; display:block; text-align: center; color:#000; } nav ul li { display:inline-block; position: relative; } nav ul li a:hover { background: #ddd; } a.titel { color:#f00; } /* Oder alternativ ohne Klasse das 4. Element li:nth-child(4) a { color:#f00; } */ </style> </head> <body> <nav> <ul> <li><a href="#">News</a></li> <li><a href="#">Team</a> <li><a href="#">Studio</a></li> <li><a class="titel" href="referenzen.html">Referenzen</a></li> </ul> </nav> </body> </html>