Brauche Hilfe bei einem Template

o3rn

Grünschnabel
Hallo liebe Community!

Zuerst ma der Queltext.

Html
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.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="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body id="body">
<div id="center">
<div id="header"></div>
<div id="vnavlinks"></div>
<div id="vnavmitte"></div>
<div id="vnavrechts"></div>
<div id="contentoben"></div>
<div id="contentmitte">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venen<div id="contentunten"></div>
</div>
<div id="footerlinks"></div>
<div id="footermitte"></div>
<div id="footerrechts"></div>
</div>
</body>
</html>

Und das CSS

HTML:
#body{
	margin:0px auto;
	background-color:#FFF;
	
}

#center{
	position:relative;
	top:0px;
	left:0px;
	height:100%;
	width:975px;
	margin:0px auto
	
}
#header{
	position:relative;
	top:0px;
	left:0px;
	width:975px;
	height:250px;
	background-image:url(../images/header.gif);
}
#vnavlinks{
	position:absolute;
	top:265px;
	left:10px;
	height:80px;
	width:21px;
	background-image:url(../images/vnavilinks.gif);
}
#vnavmitte{
	position:relative;
	left:30px;
	top:15px;
	width:916px;
	height:80px;
	background-image:url(../images/vnavimitte.gif);
	background-repeat:repeat-x;
}
#vnavrechts{
	position:absolute;
	top:265px;
	left:945px;
	width:20px;
	height:80px;
	background-image:url(../images/vnavirechts.gif);
}

#contentoben{
	position:relative;
	left:338px;
	top:35px;
	width:603px;
	height:27px;
	background-image:url(../images/contentoben.gif);
}
#contentmitte{
	position:relative;
	top:34px;
	left:338px;
	width:603px;
	height:auto;
	background-image:url(../images/contentmitte.gif);
	margin-bottom:100px;
	
}
#contentunten{
	position:relative;
	top:20px;
	left:0px;
	width:603px;
	height:25px;
	background-image:url(../images/contenunten.gif);
}
#footerlinks{
	position:relative;
	top:0px;
	left:10px;
	height:48px;
	width: 21px;
	background-image:url(../images/footerlinks.gif);	
}
#footermitte{
	position:relative;
	top:-48px;
	left:25px;
	height:48px;
	width:920px;
	background-image:url(../images/footermitte.gif);
	background-repeat:repeat-x;
}
#footerrechts{
	position:relative;
	left:945px;
	top:-96px;
	width:20px;
	height:48px;
	background-image:url(../images/footerrechts.gif);
}

So jetzt mochte ich ein div haben das unterm #header beginnt und bis zum footer geht. Mit meinen Kenntnissen hab ichs nicht hingekriegt. Entweder er ragt über den footer hinaus, oder ist zu kurz.. Ich weiss nicht mehr weiter.

Vielen Dank schonma fuer eure Hifle


Edit: Habs hingekriegt
 
Zuletzt bearbeitet:
Zurück