-Raid-
Mitglied
Den Kontentbereich konnte ich ganz einfach clearen, der Header und der Footer wollen aber irgendwie nicht. Der Balken "steckt" jetzt zwischen dem Header und dem Footer fest.
Code:
.clearfix:after {
content: ".";
display: block;
height: 100%;
clear: both;
visibility: hidden;
}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
body {
font-size: 15px;
font-color: #000000;
font-family: Times New Roman;
margin: 0em; padding: 1.45em;
min-width: 40em;
background: #1a2d34 url("images/BarL.jpg") repeat-y;
}
h1 {
font-size: 1.0em;
margin: -23px -6px 0.2em; padding: 74.5px;
background: url("images/header.jpg");
border: 0px ridge silver;
}
ul#Navigation {
font-size: 14px;
float: left; width: 140px;
margin: -7.5px; padding: 0.2em;
border: 0px solid black;
clear:both;
}
ul#Navigation li {
list-style: none;
border: 1px solid;
clear: both;
}
ul#Navigation a {
display: block;
padding: 2px;
}
ul#Navigation a:link {
color: black; background: url("images/NaviButton.jpg");
text-align:center;
}
ul#Navigation a:link {
text-decoration:none
}
ul#Navigation a:visited {
text-decoration:none;
text-align:center
}
ul#Navigation a:visited {
color: #000000; background: url("images/NaviButton.jpg");
text-align:center;
}
ul#Navigation a:hover {
color: #14b7ab; background: url("images/NaviButtonOver.jpg");
text-align:center;
}
ul#Navigation a:active {
color: white; background: url("images/NaviButton.jpg");
text-align:center;
}
ul#Navigation2 {
font-size: 14px;
float: left; width: 140px;
margin: 0px -37px; padding: 2.25em;
border: 0px solid black;
clear:both;
}
ul#Navigation2 li {
float: left;
width: 138px;
list-style: none;
border: 1px solid;
clear: both;
}
ul#Navigation2 a {
display: block;
padding: 2px;
}
ul#Navigation2 a:link {
color: black; background: url("images/NaviButton.jpg");
text-align:center;
}
ul#Navigation2 a:link {
text-decoration:none
}
ul#Navigation2 a:visited {
text-decoration:none;
text-align:center
}
ul#Navigation2 a:visited {
color: #000000; background: url("images/NaviButton.jpg");
text-align:center;
}
ul#Navigation2 a:hover {
color: #14b7ab; background: url("images/NaviButtonOver.jpg");
text-align:center;
}
ul#Navigation2 a:active {
color: white; background: url("images/NaviButton.jpg");
text-align:center;
}
div#wrapper {
background: url(images/BarR.jpg) right repeat-y;
padding: 0em 1.5%; margin: 0em 0em;
}
div#Datum {
font-size: 1.1em;
color:#ffffff;
float: right; width: 10em;
margin: -30.2% 0em; padding: 0em 0em;
border: 0px dashed silver; background:url("images/Background-news-middle.jpg");
clear: both;
}
div#Inhalt {
margin: -3px -6px 39% 140px;
}
html div#Inhalt {
height: 1em;
}
div#Inhalt h2 {
font-size: 1.1em;
margin: 0em 0em;
background: url("images/NaviDown.jpg");
}
div#Inhalt p {
font-size: 1em;
margin: 0em 0em;
padding: 2em 0em;
background: url("images/InhaltBackground.jpg");
}
p#Footer {
font:1em/100% bold;
margin: -6px; padding: 0.20em 0em;
text-align: center;
background: url("images/NaviDown.jpg");
}
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>NailDesign V3 - Willkommen</title>
<style type="text/css">
@import "layout.css";
</style>
<script type="text/javascript" src="uhrzeit.js"></script>
</head>
<body>
<div id="wrapper" class="clearfix">
<h1></h1>
<ul id="Navigation">
<center><li>Navigation</a></li></center>
<li><a href="index.html">Willkommen</a></li>
<li><a href="preise.htm">Preise</a></li>
<li><a href="bilder.htm">Bilder</a></li>
<li><a href="links.htm">Links</a></li>
<li><a href="kontakt.htm">Kontakt</a></li>
<li><a href="impressum.htm">Impressum</a></li>
<center><li>  </li></center>
</ul>
<ul id="Navigation2">
<center><li>Navigation</a></li></center>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<center><li>  </li></center>
</ul>
<center><div id="Datum">
<body onLoad="UhrzeitAnzeigen();">
<span id="Uhrzeit"></span>
</div></center>
<div id="Inhalt">
<h2><center><span style=color:white>Willkommen auf der Seite von Uschi Huthmacher</span></center></h2>
<center><p>Under Construction<br><br><br><br><br><br><br></p></center>
</div>
<p id="Footer">© <script language="javascript" type="text/javascript">
<!--
var Datum = new Date();
document.write(Datum.getFullYear());
//-->
</script> by Naildesign</p>
</div>
</body>
</html>
Zuletzt bearbeitet: