Hey,
Ich ein Problem bei folgendem Layout:
Unbenanntes Dokument
Eigentlich sollen die Buttons noch einen Hover haben, allerdings wird dieser nicht angezeigt.
Erkennt ihr vielleicht den Fehler:
Aßerdem weiß ich nicht, woher der weiße Rand zwischen den Buttons und dem Inhalt herkommt. Eigentlich habe ich alle Maße richtig eingegeben. (Im Dreamweaver wird die weiße Lücke auch nicht angezeigt) :(
Ich hoffe ihr könnt mir helfen.
Ich ein Problem bei folgendem Layout:
Unbenanntes Dokument
Eigentlich sollen die Buttons noch einen Hover haben, allerdings wird dieser nicht angezeigt.
Erkennt ihr vielleicht den Fehler:
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="top">
<div id="header"></div>
<div id="buttons">
<ul>
<li id="news"><a href="http://"></a></li>
<li id="uber"><a href="http://"></a></li>
<li id="projekte"><a href="http://"></a></li>
<li id="galerie"><a href="http://"></a></li>
<li id="tutorials"><a href="http://"></a></li>
<li id="gastebuch"><a href="http://"></a></li>
<li id="kontakt"><a href="http://"></a></li>
</ul>
</div>
</div>
<div id="verlauf"></div>
<div id="inhalt">
<div id="text"></div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
PHP:
html, body, ul, li {
margin: 0;
padding: 0;
}
ul {
list-style: none;
}
#wrapper {
width: 1000px;
height: 900px;
}
#top {
background-image: url(Bilder/top.jpg);
width: 1000px;
height: 150px;
}
#header {
background-image: url(Bilder/header.jpg);
width: 300px;
height: 150px;
float: left;
}
#buttons {
width: 700px;
height: 150px;
float: left;
}
#news a {
background-image: url(Bilder/news.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
#uber a {
background-image: url(Bilder/ubermich.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
#projekte a {
background-image: url(Bilder/projekte.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
#galerie a {
background-image: url(Bilder/galerie.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
#tutorials a {
background-image: url(Bilder/tutorials.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
#gastebuch a {
background-image: url(Bilder/gastebuch.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
#kontakt a {
background-image: url(Bilder/kontakt.jpg);
width: 100px;
height: 50px;
float: left;
margin: 100px 0px 0px 0px;
}
news a:hover {
background-image: url(Bilder/newshover.jpg);
width: 100px;
height: 150px;
float: left;
}
uber a:hover {
background-image: url(Bilder/ubermichhover.jpg);
width: 100px;
height: 150px;
float: left;
}
projekte a:hover {
background-image: url(Bilder/projektehover.jpg);
width: 100px;
height: 150px;
float: left;
}
galerie a:hover {
background-image: url(Bilder/galeriehover.jpg);
width: 100px;
height: 150px;
float: left;
}
tutorials a:hover {
background-image: url(Bilder/tutorialshover.jpg);
width: 100px;
height: 150px;
float: left;
}
gastebuch a:hover {
background-image: url(Bilder/gastebuchhover.jpg);
width: 100px;
height: 150px;
float: left;
}
kontakt a:hover {
background-image: url(Bilder/kontakthover.jpg);
width: 100px;
height: 150px;
float: left;
}
#verlauf {
background-image: url(Bilder/verlauf.jpg);
width: 1000px;
height: 10px;
clear: both;
}
#inhalt {
background-image: url(Bilder/inhalt.jpg);
width: 1000px;
height: 715px;
}
#text {
width: 960px;
height: 675px;
margin: 20px 20px 20px 20px;
}
#footer {
background-image: url(Bilder/footer.jpg);
width: 1000px;
height: 25px;
}
Ich hoffe ihr könnt mir helfen.