HTML 4 YOU
Neues Mitglied
Hey Leute,
ich habe ein Problem, und zwar erweitern sich meine divs nicht automatisch.. :|, obwohl ich height: auto; eingefügt habe.
Habe es schon in Google Chrome, Firefox, IE 7+8 und Safari getestet, funktionierte aber nirgens
Hier mein HTML-Code:
Hier die CSS-Datei:
Hoffe ihr könnt mir helfen.
ich habe ein Problem, und zwar erweitern sich meine divs nicht automatisch.. :|, obwohl ich height: auto; eingefügt habe.
Habe es schon in Google Chrome, Firefox, IE 7+8 und Safari getestet, funktionierte aber nirgens
Hier mein HTML-Code:
HTML:
<!DOCTYPE HTML>
<html>
<head>
<title>Startseite</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="../styles/Style.css" media="all" />
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="../styles/Style_lte_IE_7.css" media="all" /><![endif]-->
</head>
<body>
<div id="header">
</div>
<div id="page">
<div id="sidebar">
<div id="Logo">
<img src="../images/Logo.png" alt="m-remy.de" />
</div>
<ul id="nav-bar">
<li><a href="index.html">Startseite</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>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</div>
<div id="content">
<h3>Hallo und herzlich Willkommen auf meiner Homepage !!</h3>
<p align="justify" class="eins">
Hallo auf meiner neuen Homepage ! Ich habe sie jetzt neu überarbeitet, hoffe sie gefällt euch ! agshfkaj fkajsgfhja gjhag dskja hgkjha hjfhjfagf kjasfhja hjfgd ahjs fjha fhja hjfgfa gfash fasgfhkasfghjkfghjujafsfha jfhkja gfjhagfhgasdhjfgakjgsj fhags gfjsdikjfa dhjf gakjhsgfk ahjdg fkjhagsdh gfasjgfjahgfhj fhjg fkajsh gfjahdsjhgkjahgdfh gasjhgf AGD gfd hjFDSF SAHF AHGFAGFDJ ghas gfakjgdfkj ahs dfkjhagfdkjhahjgahjs fkajhgf hjafgfj gadskjahgfjh agfhj gashj gfjha fhjgagf jash gfjahs gfjhagfdh ags fgjahsgf jhags fjhgasdfg ash gfkjahsgghfdjh4hfg a gfahj fhjags fjhadh gfashj fkhjas fkjagfd akjs f
</p>
<p align="justify" class="zwei">
as fasd hffags fajhs gfag fhasg fnhagsd hga fgf as gfansd fafs fa fcha gf agsh fna fdngaf av s fnasf
</p>
</div>
</div>
</body>
</html>
HTML:
body {
background: #fff;
margin: 0px;
padding: 0px;
}
/********************Layout******************/
#header {
margin: 0px auto;
margin-top: 10px;
width: 900px;
height: 158px;
background: url(../images/header.png) no-repeat;
position: relative;
}
#page {
margin: 0px auto;
margin-top: 10px;
background: #d7d7d7;
width: 900px;
height: auto; /* Wieso funktioniert das nicht ? */
min-height: 450px;
border: 0px solid;
border-radius: 15px; /* CSS3 */
-webkit-border-radius: 15px; /* Safari, Chrome */
-khtml-border-radius: 15px; /* Konqueror */
-moz-border-radius: 15px; /* Firefox */
}
#sidebar {
margin-top: 0px;
position: absolute;
}
#Logo {
margin-top: 120px;
margin-bottom: 20px;
margin-left: 20px;
position: relative;
}
#nav-bar {
margin-bottom: 60px;
margin-left: 0px;
list-style-type: none;
position: absolute;
}
#content {
margin-top: 20px;
margin-bottom: 40px;
padding-bottom: 40px;
margin-left: 280px;
width: 600px;
position: absolute;
}
/********************************************/
/****Menü****/
#nav-bar li {
padding: 0px;
margin: 0px;
}
#nav-bar a {
display: block;
height: 1.3em;
width: 11em;
margin-bottom: 1px;
padding: 0.35em 0.6em 0em 0.8em;
background: #0e74d3;
color: #000;
font-family: Arial;
font-size: 11pt;
text-decoration: none;
}
#nav-bar a:hover {
background: #0583f9;
color: #fff;
}
/************/
/**Content***/
#content h3 {
border: 1px solid #fff;
text-align: center;
color: ;
border-radius: 5px; /* CSS3 */
-webkit-border-radius: 5px; /* Safari, Chrome */
-khtml-border-radius: 5px; /* Konqueror */
-moz-border-radius: 5px; /* Firefox */
}
#content p.eins {
width: 220px;
margin-left: 50px;
position: absolute;
}
#content p.zwei {
width: 220px;
margin-left: 310px;
position: absolute
}
/************/
Hoffe ihr könnt mir helfen.