Guten Tag,
ich habe ein Problem.
Ich bekomme die Content Box nicht richtig in die Seite. Alles verschiebt sich immer.
Habe auch nicht so viel ahnung. Hoffe es kann einer helfen.
Mfg
ich habe ein Problem.
Ich bekomme die Content Box nicht richtig in die Seite. Alles verschiebt sich immer.
Habe auch nicht so viel ahnung. Hoffe es kann einer helfen.
Mfg
HTML:
<!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>Untitled Document</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--CONTAINER-->
<div id="container">
<!--HEADER BACKGROUND-->
<div id="header">
<!--MENU BAR-->
<div id="nav">
</div>
<!--MENU BAR END-->
<!--HEADER LOGO-->
<div id="logo"></div>
<!--HEADER LOGO END-->
</div>
<!--HEADER BACKGROUND END-->
<div class="content_box">
<div class="content_top">
<h3>Content Box One</h3>
</div>
<div class="content_main">
<p>some text</p>
</div>
<div class="content_bottom">
<p>Posted on 04/01/2009</p>
</div>
<!--FOOTER-->
<div id="footer">
<p>Copyright copy; Yoursite.com | All Rights Reserved<br />
<br />
</a></p>
</div>
<!--FOOTER END-->
<!--CONTAINER END-->
</body>
</html>
Code:
*{
padding:0;
margin:0;
}
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
background-image:url(images/bg.gif);
background-repeat:repeat-x;
background-color:#eae5cf;
padding:0;
margin:0;
}
/* HEADER LOGO */
#logo {
background-repeat:no-repeat;
background-image: url(images/logo.gif);
height: 298px;
width: 315px;
float:left;
}
/* HEADER LOGO END*/
/* CONTENT BOX*/
.content_box {
width:485px;
float:left;
margin:auto;
}
.content_top{
background:url(images/content_top.gif);
background-repeat:no-repeat;
width:485px;
height:38px;
}
.content_top h3{
color: #5C5741;
font-family: Impact;
font-size: 24px;
font-weight: normal;
padding-top: 6px;
padding-left: 20px;
}
.content_main{
background:url(images/content.gif);
background-repeat:repeat-y;
width:485px;
padding-top: 6px;
padding-left: 20px;
padding-right: 0px;
}
.content_main p {
font-family: Verdana;
color: #A09484;
font-size: 11px;
padding-right: 30px;
}
.content_bottom {
background:url(images/content_bottom.gif);
background-repeat:no-repeat;
width:485px;
height:36px;
margin-bottom: 10px;
}
.content_bottom p {
font-family: Verdana, Arial, Helvetica, sans-serif, Impact;
color: #5C5741;
font-size: 9px;
float: right;
padding-top: 10px;
padding-right: 15px;
padding-left: 15px;
padding-bottom: 10px;
}
/* CONTENT BOX END*/
/* FOOTER*/
#footer {
height:101px;
font-family:Verdana, Arial, Helvetica, sans-serif;
background-image:url(images/footer.gif);
background-repeat:repeat-x;
background-color:#2F2519;
clear:both;
}
#footer p {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #EAE5CF;
margin: auto;
text-align: center;
padding-top: 20px;
}
/* FOOTER END*/