Corraggiouno
Mitglied
hi,
mein CSS-Code:
Mein HTML-Code:
Warum wird hier meine Überschrift nicht mit einem unteren Rahmen versehen?
mein CSS-Code:
Code:
html {
height: 100.3%;
}
body {
font-family: Verdana, sans-serif;
font-size:12px;
background:#eeeeee;
}
* {
margin: 0;
padding: 0;
}
div#wrapper {
width: 810px;
margin:15px auto;
}
h1 {
background: url(../images/logo.gif) no-repeat;
height:155px;
text-indent: -999em;
}
div#nav {
background: url(../images/nav_bg.gif) repeat-x;
width:800px;
height:35px;
margin-left:6px;
line-height:35px;
}
div#nav ul {
list-style-type:none;
}
div#nav li {
float:left;
width:160px;
text-align:center;
}
div#nav a {
display:block;
clear:left;
text-decoration: none;
color:#ffffff;
border-right-style: solid;
border-width: 1px;
border-color: #ffffff;
}
div#nav a.noborder {
border: none;
}
div#nav a:hover {
background: url(../images/nav_hover.gif) repeat-x;
text-decoration:underline;
}
div#nav a.enabled {
background: url(../images/nav_enabled.gif) repeat-x;
font-size:1.2em;
font-weight:bold;
color:#086be6;
text-decoration:none;
}
div#maintext {
background: url(../images/maintext_bg.gif) repeat-y;
margin-left:6px;
width:900px;
height:650px;
}
div#box1 {
width:240px;
float:left;
margin-top:10px;
margin-left:6px;
}
h3 {
font-size:14px;
}
.underline {
border-bottom: 2px solid;
border-color: #000000;
}
.head {
background: url(../images/box1_head.gif) no-repeat;
width:240px;
height:30px;
padding-top:10px;
padding-left:15px;
}
.middle {
background: url(../images/box1_middle.gif) repeat-y;
width:240px;
margin-top:-10px;
padding-top:5px;
padding-left:15px;
}
.bottom {
background: url(../images/box1_bottom.gif) no-repeat;
width:240px;
height:30px;
padding-left:15px;
}
Code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>NET</title>
<link href="css/mh.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<h1>NET</h1>
<div id="nav">
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="dienstleistung.php">Dienstleistung</a></li>
<li><a href="aktuelles.php">Aktulles</a></li>
<li><a href="kontakt.php" class="enabled">Kontakt</a></li>
<li><a href="login.php" class="noborder">Login</a></li>
</ul>
</div>
<div id="maintext">
<div id="box1">
<div class="head"><h3 class="underline">Kontakt</h3></div>
<div class="middle">
NEbr />
Coik<br />
Bu <br />
7l
</div>
<div class="bottom"></div>
</div>
</div>
</div>
</body>
</html>