Hey Leute... ich bin neu hier aber ich wollte mal Fragen wie ich es hinbekomme das z.B links neben dem Punkt "Home"
ein Icon platziert wird. Ich habe es zwar hingekriegt das ein Icon erscheint aber nicht daneben. :(
Könnt ihr mir helfen? :(
index.html:
___________________________________________________________
style.css:
__________________________________________
Ausgabe: http://prntscr.com/83bvgq
ein Icon platziert wird. Ich habe es zwar hingekriegt das ein Icon erscheint aber nicht daneben. :(
Könnt ihr mir helfen? :(
index.html:
<html>
<head>
<title> Simolina </title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="header">
Simolina
</div>
<nav>
<li><a href="index.html">Startseite</a></li>
<i class="homepng">
</i>
<li><a href="news.html">Neuigkeiten</a></li>
</nav>
</body>
</html>
<head>
<title> Simolina </title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="header">
Simolina
</div>
<nav>
<li><a href="index.html">Startseite</a></li>
<i class="homepng">
</i>
<li><a href="news.html">Neuigkeiten</a></li>
</nav>
</body>
</html>
style.css:
body {
margin: 0px;
}
#header {
background-color: #013ADF;
width: 100%;
height: 30%;
}
nav {
background-image: url(../images/nav.png);
padding-top: 10px;
width: 100%;
height: 100px;
list-style-type: none;
text-transform: uppercase;
text-decoration: none;
}
nav ul {
}
nav ul li a {
text-decoration: none;
}
nav a {
text-decoration: none;
float:left;
font-family: Trebuchet MS;
font-weight: bold;
color: #FFF;
padding: 10px;
display: block;
margin-top: 2%;
margin-left: 10%;
}
.homepng:before {
content: url(../images/Home-50.png);
padding-right: 150px;
}
margin: 0px;
}
#header {
background-color: #013ADF;
width: 100%;
height: 30%;
}
nav {
background-image: url(../images/nav.png);
padding-top: 10px;
width: 100%;
height: 100px;
list-style-type: none;
text-transform: uppercase;
text-decoration: none;
}
nav ul {
}
nav ul li a {
text-decoration: none;
}
nav a {
text-decoration: none;
float:left;
font-family: Trebuchet MS;
font-weight: bold;
color: #FFF;
padding: 10px;
display: block;
margin-top: 2%;
margin-left: 10%;
}
.homepng:before {
content: url(../images/Home-50.png);
padding-right: 150px;
}
Ausgabe: http://prntscr.com/83bvgq
Zuletzt bearbeitet: