exitboy
Erfahrenes Mitglied
Hallo @ All,
ich fang grade erst mit CSS an, hab Euch mal den Code reingepackt. Dort wo Empty Line steht, ist bei mir eine 1pixel hohe Zeile zu sehen, die wohl vom <div id="content"> kommt, da hier dei Hintergrundfarbe durchschaut.
Vielleicht ist auch ein grundlegender Fehler drin ...
<body>
<div id="header">
<div id="logoarea"></div>
<div id="main-nav"><br>
</div>
</div>
<div id="main">
<div id="sub-nav"></div>
<div id="content">
<div id="promoborder">
<div id="promolarge"></div>
<div id="promownd1"></div>
<div id="promownd2"></div>
<div id="promownd3"></div>
</div>
EMPTY LINE
<div id="promoborder">
<div id="promownd1"></div>
<div id="promownd2"></div>
<div id="promownd3"></div>
</div>
</div></div>
</body>
CSS:
#header {
margin: 0px;
padding: 0px;
width: 952px;
height: 80px;
}
#logoarea {
width: 150px;
background-color: #336699;
float: left;
height: 80px;
border-top: 1px dotted;
border-right: 0px;
border-bottom: 1px dotted;
border-left: 1px dotted;
margin-top: 5px;
margin-left: 5px;
background-image: url(web-content/logo.jpg);
}
#main-nav {
background-color: #336699;
width: 792px;
float: left;
padding: 0px;
height: 80px;
border-top: 1px dotted;
border-right: 1px dotted;
border-bottom: 1px dotted;
margin-right: 5px;
margin-left: 0px;
margin-top: 5px;
background-image: url(web-content/wallpaper.jpg);
}
#main {
width: 952px;
height: 820px;
margin: 0px;
padding: 0px;
}
#sub-nav {
float: left;
width: 160px;
background-color: #336699;
height: 800px;
border: 1px dotted #000000;
margin: 5px;
}
#content {
width: 772px;
float: left;
background-color: #A8C5E1;
border: 1px dotted;
margin: 5px;
}
#promownd1 {
float: left;
height: 220px;
width: 242px;
background-color: #CCCCCC;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 10px;
}
#promownd2 {
float: left;
height: 220px;
width: 242px;
background-color: #CCCCCC;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
}
#promownd3 {
float: left;
height: 220px;
width: 244px;
background-color: #CCCCCC;
margin-right: 10px;
margin-bottom: 10px;
margin-left: 5px;
}
#promolarge {
background-color: #CCCCCC;
float: left;
height: 120px;
width: 747px;
margin-top: 10px;
margin-right: 10px;
margin-left: 10px;
margin-bottom: 10px;
}
#promoborder {
background-color: #999999;
width: 768px;
margin: 0px;
float: left;
}
ich fang grade erst mit CSS an, hab Euch mal den Code reingepackt. Dort wo Empty Line steht, ist bei mir eine 1pixel hohe Zeile zu sehen, die wohl vom <div id="content"> kommt, da hier dei Hintergrundfarbe durchschaut.
Vielleicht ist auch ein grundlegender Fehler drin ...
<body>
<div id="header">
<div id="logoarea"></div>
<div id="main-nav"><br>
</div>
</div>
<div id="main">
<div id="sub-nav"></div>
<div id="content">
<div id="promoborder">
<div id="promolarge"></div>
<div id="promownd1"></div>
<div id="promownd2"></div>
<div id="promownd3"></div>
</div>
EMPTY LINE
<div id="promoborder">
<div id="promownd1"></div>
<div id="promownd2"></div>
<div id="promownd3"></div>
</div>
</div></div>
</body>
CSS:
#header {
margin: 0px;
padding: 0px;
width: 952px;
height: 80px;
}
#logoarea {
width: 150px;
background-color: #336699;
float: left;
height: 80px;
border-top: 1px dotted;
border-right: 0px;
border-bottom: 1px dotted;
border-left: 1px dotted;
margin-top: 5px;
margin-left: 5px;
background-image: url(web-content/logo.jpg);
}
#main-nav {
background-color: #336699;
width: 792px;
float: left;
padding: 0px;
height: 80px;
border-top: 1px dotted;
border-right: 1px dotted;
border-bottom: 1px dotted;
margin-right: 5px;
margin-left: 0px;
margin-top: 5px;
background-image: url(web-content/wallpaper.jpg);
}
#main {
width: 952px;
height: 820px;
margin: 0px;
padding: 0px;
}
#sub-nav {
float: left;
width: 160px;
background-color: #336699;
height: 800px;
border: 1px dotted #000000;
margin: 5px;
}
#content {
width: 772px;
float: left;
background-color: #A8C5E1;
border: 1px dotted;
margin: 5px;
}
#promownd1 {
float: left;
height: 220px;
width: 242px;
background-color: #CCCCCC;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 10px;
}
#promownd2 {
float: left;
height: 220px;
width: 242px;
background-color: #CCCCCC;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
}
#promownd3 {
float: left;
height: 220px;
width: 244px;
background-color: #CCCCCC;
margin-right: 10px;
margin-bottom: 10px;
margin-left: 5px;
}
#promolarge {
background-color: #CCCCCC;
float: left;
height: 120px;
width: 747px;
margin-top: 10px;
margin-right: 10px;
margin-left: 10px;
margin-bottom: 10px;
}
#promoborder {
background-color: #999999;
width: 768px;
margin: 0px;
float: left;
}