Diese Reihenfolge der Elementen hast Du jetzt (s. Vorlage unten) :
header
mainNav
contentWrap
--breadCrumb
--Inhalt
footer
Da Du ein BreadCrumb hast, kannst Du die Reihenfolge der Elementen im Quelltext ändern.
BreadCrumb enthält u.A. auch den Site-Name, wenn Du Deine root-Seite entsprechend benennst. So ist es unproblematisch, wenn contentWrap an erster Stelle im Quellcode steht. Du müsstest in diesem Fall nur H1 im header mit einem passenden Element austauschen.
contentWrap
--breadCrumb
--Inhalt
footer
header
mainNav
An der CSS-Datei brauchst Du nichts ändern, egal welche der zwei Varianten Du nimmst.
Auslagern kannst Du sie jetzt oder später. Zum Posten ist es einfacher alles (html und CSS) in einer Datei.
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" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Content-Language" content="de" />
<meta name="language" content="de" />
<title>Unearth-Template</title>
<style type="text/css">
* { margin: 0; padding: 0; border: none; list-style-type: none; }
h1, h2, h3, h4, h5, h6 { font-size: 100.01%; font-weight: normal; }
html {
height: 100%;
font-size: 100.01%;
}
body {
height: 100%;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
line-height: 1.4;
}
div#header {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 200px;
background-color: #bbb;
}
div#header h1 {
width: 800px;
height: 100%;
margin: 0 auto;
background-color: #eee;
}
div#mainNav {
position: absolute;
left: 0;
top: 200px;
width: 100%;
height: 50px;
background-color: #aaa;
}
div#mainNav ul {
width: 800px;
height: 100%;
margin: 0 auto;
background-color: #bbb;
}
div#mainNav ul li {
display: inline;
}
div#contentWrap {
width: 800px;
min-height: 100%;
margin: 0 auto;
background-color: #eee;
}
p#breadCrumb {
padding-top: 250px;
}
div#content {
padding-bottom: 50px;
}
div#footer {
height: 50px;
margin-top: -50px;
background-color: #bbb;
}
div#footer p {
width: 800px;
height: 100%;
margin: 0 auto;
background-color: #ccc;
}
</style>
<!--[if lte IE 7]><style type="text/css">
* html body {
font-size /**/: x-small;
text-align /**/: center;
}
* html div#header h1,
* html div#mainNav ul,
* html div#contentWrap,
* html div#footer p {
text-align /**/: left;
}
* html div#mainNav ul {
margin /**/: 0;
}
* html div#contentWrap {
height: 100%;
}
</style><![endif]-->
</head>
<body>
<div id="header"><h1>Site-Name (Logo)</h1></div>
<div id="mainNav"><ul><li>Haupt-Navigation</li></ul></div>
<div id="contentWrap">
<p id="breadCrumb">breadCrumb</p>
<div id="content">Inhalt</div>
</div>
<div id="footer"><p>Footer</p></div>
</body>
</html> P.S.: Manche Elemente sind nur vorläufig formatiert. Später wird das geändert, wenn Du (wir) beispielsweise die Navis formatieren.
Menüs - ich würde Dir eher die von Georg empfehlen:
http://www.just2b.com/mein-typo3/css...own-menue.html
Lesezeichen