Hallo, wie bekomme ich es hin, dass die Einträge der Navigation eine andere Farbe bekommen, sodass man sieht auf welcher Seite man sich gerade befindet`?
HTML:
<html>
<head>
<meta charset="UTF-8" />
<title>
Titelname
</title>
<style>
body
{
margin: 0px;
font-family: arial;
background: #FFDD8A;
width: 1920px;
height: auto;
}
main2
{
margin-right: auto;
margin-left: auto;
background: #d2b48c;
color: #444;
}
header
{
padding: 10px;
color: #080F41;
background: #FAA14C;
font-size: 25px;
text-align:center;
height: auto;
}
nav
{
padding: 10px;
color: #F5DA81;
background: #EABE58;
font-size: 26px;
height: auto;
}
main
{
padding: 10px;
color: #39C2E8;
background: #E5ECD3;
font-size: 26px;
height: 500px;
}
footer
{
padding: 10px;
color: #F5DA81;
background: #AB9346;
font-size: 18px;
height: auto;
}
.CenteredContent
{
width: 1200px;
margin-right: auto;
margin-left: auto;
}
.navilist
{
display: flex;
list-style: outside none none;
}
.navilist li
{
align-items: center;
border-left: 1px solid #eee;
display: flex;
flex: 1 1 0;
height: 60px;
justify-content: center;
margin: 0 auto;
resize: both;
width: 100%;
}
</style>
</head>
<body>
<!-- KOPFBEREICH -->
<header>
<div class="CenteredContent">
<h1>Seiten-Name</h1>
</div>
</header>
<!-- NAVIGATION -->
<nav>
<div class="CenteredContent">
<div class="index">
<ul class="navilist">
<li><home.html> Home</a></li>
<li><a...> Projekte</a></li>
<li><a...> ?</a></li>
<li><a...> Impressum</a></li>
</ul>
</div>
</div>
</nav>
<!-- INHALT -->
<main>
<div class="CenteredContent">
<h3>Empire Story</h3>
</div>
</main>
<!-- FOOTER -->
<footer>
<div class="CenteredContent">
<p>Designed by: Sue</p>
<p>Contact information: </p>
</div>
</footer>
</body>
</html>
Zuletzt bearbeitet von einem Moderator: