test.html
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><html><head><link href="style.css" type="text/css" rel="stylesheet" /></head><body><div id="header"></div><div id="steuerung"><a href="allgemein.html">Allgemein</a><br /><a href="news.html">Neuste News</a><br /><a href="aktionen.html">Aktionen</a><br/><a href="gewinnspiele.html">Gewinnspiele</a><br /><a href="spiele.html">Spiele Übersicht</a><br /><a href="dp.html">Diamant/Perl</a><br><a href="platin.html">Platin</a><br><a href="ranger2.html">Ranger 2</a><br><a href="md2.html">Mistery Dungeon 2</a><br /><a href="md3.html">Mistery Dungeon 3</a><br /><a href="pokenews.html">Pokenews</a><br/><a href="impressum.html">Impressum</a><br/><a href="pb/index.php">Forum</a><br/><a href="jobs.html">Jobs</a><br/><a href="help_us.html">Unterstütze Pokenews</a><br /><a href="partner.html">Partner</a><br/><a href="links.html">Links</a><br/><a href="http://www.amazon.de">Amazon</a><br /></div><div id="inhalt"><a href="text.html">Test</a><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></div><div id="fußzeile"><center>Pokenews.bplaced.de ist eine private Pokemon-Fanseite--<a href="impressum.html">Impressum</a><br/></center></div></html></body>
style.css
CSS
<style type="text/css">
<!--
html, body {
font: 100% Arial, Helvetica, sans-serif;
background:url(hintergrund.png) repeat-x;
background-color: #ffdcdc;
}
#steuerung {
float: left;
width: 150px;
margin-bottom: 2px;
margin-left: 10%;
margin-top: 1px;
padding: 0px;
border: 1px solid black;
}
#inhalt {
border: 1px solid black;
width: 100%;
margin-right: 10%;
margin-left: 10%;
padding: 2px;
background:url(hintergrundcontent.png);
margin-top: 1px;
}
#header{
width: 100%;
height: 250px;
border: 1px solid black;
margin-right: 10%;
margin-left: 10%;
background:url(hintergrundcontent.png);
margin-top: 8px;
}
#fußzeile {
border: 1px solid black;
width: 100%;
margin-right: 10%;
margin-left: 10%;
padding: 2px;
background:url(hintergrundcontent.png);
margin-top: 1px;
}
#steuerung a:link {
background:url(link.png) no-repeat width: 180px;
color: #ffffff;
padding-left:11px;
width: 400px;
height: 19px;
text-decoration:none;
border: 1px solid black;
}
#steuerung a:visited {
background:url(link.png) no-repeat width: 180px;
color: #ffffff;
padding-left:11px;
height: 19px;
text-decoration:none;
width: 400px;
border: 1px solid black;
}
#steuerung a:hover {
background:url(hover.png) no-repeat width: 180px;
color: #000000;
padding-left:11px;
height: 19px;
text-decoration:none;
width: 180px;
border: 1px solid black;
}
#steuerung a:active {
background:url(hover.png) no-repeat;
color: #000000;
padding-left:11px;
height: 19px;
text-decoration:none;
width: 180px;
border: 1px solid black;
}
a:link {
color: #0000FF;
text-decoration:none;
}
a:visited {
color: #0000FF;
text-decoration:none;
}
a:hover {
color: #FF0011;
text-decoration:none;
}
-->
</style>
Alles anzeigen
Alle Bilddateien sind vorhanden, aber das Outcome sieht anders aus als es gecodet ist:
In der Steuerung haben die Links kein Hintergrund und der Hover ist Falsch. Außerdem ist der Content (div id="inhalt") unter der Steuerung anstatt links daneben.
Pls help.