Hallo,
hoffe mir kann jemand helfen.
Mein Problem ist, dass sich ein Layer (footer) über den anderen Layer (main) gelegt hat.
Habe versucht mit z-index die Überlappung aufzuheben, funktioniert aber leider nicht so gewünscht, wie erwartet.
Hat jemand eine Idee wie man das lösen kann? Der Footer-Layer soll einfach unter dem anderen Layer angezeigt werden, sodass die anderen div-Boxen wieder zum Vorschein kommen.
Wäre über eine Antwort sehr dankbar.
Gruß
pheno
Livedemo
Bitte klicken
Alles anzeigen
Alles anzeigen
hoffe mir kann jemand helfen.
Mein Problem ist, dass sich ein Layer (footer) über den anderen Layer (main) gelegt hat.
Habe versucht mit z-index die Überlappung aufzuheben, funktioniert aber leider nicht so gewünscht, wie erwartet.
Hat jemand eine Idee wie man das lösen kann? Der Footer-Layer soll einfach unter dem anderen Layer angezeigt werden, sodass die anderen div-Boxen wieder zum Vorschein kommen.
Wäre über eine Antwort sehr dankbar.
Gruß
pheno
Livedemo
Bitte klicken
Quellcode
- /*------------------- Main ----------------------- */
- body{
- background-color:#665849;
- background-image:url(images/headerbg.gif);
- background-position:top;
- background-repeat:repeat-x;
- margin:0px;
- width:auto;
- }
- html, body {
- margin: 0;
- padding: 0;
- height: 100%;
- }
- #main{
- margin:0px auto; /*Zentrierung sämtlicher div-Layer*/
- width:1000px;
- z-index:1;
- }
- /*------------------ Header --------------------*/
- #imprint {
- height:29px;
- line-height:29px;
- }
- #logo {
- background-image:url(images/logo.gif);
- background-repeat:no-repeat;
- height:109px;
- width:229px;
- }
- #navigation {
- height:33px;
- line-height:33px;
- }
- /*------------------ Content --------------------*/
- #comment {
- float:right;
- background-color:#EEEDE8;
- border: 1px solid #000000;
- height:auto;
- padding-bottom:15px;
- padding-left:15px;
- padding-right:15px;
- padding-top:15px;
- width:30%;
- }
- #commentBox{
- background-color:#DBDAD6;
- border: 1px solid #999895;
- padding: 8px 8px 8px 8px;
- }
- #commentEditfeld {
- float:right;
- }
- #commentEditfeldDescription{
- float:left;
- }
- #content {
- float:left;
- background-color:#EEEDE8;
- border: 1px solid #000000;
- height:auto;
- padding-bottom:15px;
- padding-left:15px;
- padding-right:15px;
- padding-top:15px;
- width:60%;
- }
- #contentKategorie {
- float:left;
- }
- #contentDatum {
- float:right;
- }
- #contentspacer {
- float:left;
- height:auto;
- width:29px;
- }
- #spacer {
- height:29px;
- width:1000px;
- }
- /*------------------ Footer ---------------------*/
- #footer{
- background-color:#665849;
- background-image:url(images/footerbg.gif);
- background-repeat:repeat-x;
- bottom: 0 !important;
- bottom: -1px;
- height:131px;
- position: absolute;
- width:100%;
- z-index:2;
- }
- /*------------------ Font -----------------------*/
- .comment {
- color:#585857;
- font-family: Tahoma, Arial;
- font-size:9pt;
- text-decoration:none;
- text-align:justify;
- }
- .commentBox {
- color:#333333;
- font-family: Tahoma, Arial;
- font-size:9pt;
- text-decoration:none;
- font-weight:bold;
- }
- .commentDescription {
- color:#333333;
- font-family: Tahoma, Arial;
- font-size:8pt;
- text-decoration:none;
- }
- .commentUser {
- color:#333333;
- font-family: Tahoma, Arial;
- font-size:8pt;
- text-decoration:none;
- font-weight:bold;
- }
- .commentMitteilung {
- color:#333333;
- font-family: Tahoma, Arial;
- font-size:8pt;
- text-decoration:none;
- font-weight:bold;
- }
- .commentDatum {
- color:#333333;
- font-family: Tahoma, Arial;
- font-size:8pt;
- text-decoration:none;
- }
- .content {
- color:#585857;
- font-family: Tahoma, Arial;
- font-size:9pt;
- text-decoration:none;
- text-align:justify;
- }
- .contentHeadline {
- color:#585857;
- font-family: Tahoma, Arial;
- font-size:16pt;
- text-decoration:none;
- }
- .contentKategorie {
- color:#585857;
- font-family: Tahoma, Arial;
- font-size:8pt;
- text-decoration:none;
- }
- .contentDatum {
- color:#585857;
- font-family: Tahoma, Arial;
- font-size:8pt;
- text-decoration:none;
- }
- .imprint {
- color:#A0A09B;
- font-family: Tahoma, Arial;
- font-size:10pt;
- text-decoration:none;
- text-align:center;
- }
- .imprint a:active, a:link, a:visited{
- color:#A0A09B;
- font-family: Tahoma, Arial;
- font-size:10pt;
- text-decoration:none;
- }
- .imprint a:hover {
- color:#E82C35;
- font-family: Tahoma, Arial;
- font-size:10pt;
- text-decoration:none;
- }
- .navigation {
- color:#A0A09B;
- font-family: Tahoma, Arial;
- font-size:10pt;
- text-decoration:none;
- text-align:center;
- }
- .navigation a:active, a:link, a:visited{
- color:#A0A09B;
- font-family: Tahoma, Arial;
- font-size:10pt;
- text-decoration:none;
- }
- .navigation a:hover {
- color:#E82C35;
- font-family: Tahoma, Arial;
- font-size:11pt;
- text-decoration:none;
- font-weight:bold;
- }
Quellcode
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Senca.de</title>
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <div id="main">
- <div id="imprint" align="right">
- <span class="imprint">
- <a href="#">Impressum</a> | <a href="#">Kontakt</a> | <a href="#">Sitemap</a>
- </span>
- </div>
- <div id="logo" align="left"></div>
- <div id="navigation" align="left">
- <span class="navigation">
- <a href="#"><b>Login</b></a>
- <a href="#">Startseite</a>
- <a href="#">Content</a>
- <a href="#">Blog</a>
- <a href="#">Gästebuch</a>
- </span>
- </div>
- <div id="spacer"></div>
- <div>
- <div id="content">
- <div>
- <span class="contentHeadline">
- Dies ist eine Überschrift einer neuen Mitteilung
- </span>
- </div>
- <div>
- <div id="contentKategorie" align="left">
- <span class="contentKategorie">
- Kategorie: Neues von Senca.de
- </span>
- </div>
- <div id="contentDatum" align="right">
- <span class="contentDatum">
- Datum: 2. August 2008
- </span>
- </div>
- </div>
- <br />
- <hr />
- <div>
- <span class="content">
- C O N T E N T | LoremLorem ipsum mel ea esse paulo consulatu, dicit facilisi salutatus ut nam.
- Ex deleniti sadipscing nec, ex dolor atomorum per. Aeque salutatus quaerendum
- ei vel, has vero aliquam aliquando ea. Viderer placerat nam ne. Est et placerat
- definiebas, zzril dictas ut sit, sapientem comprehensam vis at. Usu cu debet
- phaedrum. Eos at corpora adipisci signiferumque.<br /><br />
- Te brute libris referrentur cum, mazim omnes eum ea, malis facete pro at.
- Vis eu odio singulis, sea primis latine ut, accumsan sententiae in vix. Sit ut porro
- idisse. Epicuri oportere ne vix, enim duis consequat vix cu. Vel ea veritus delicata,
- assum periculis gubergren sea ex. Cu solum euismod est, ea sit facete quaestio
- efficiendi. Cum id modus volumus officiis, id rebum corpora interesset quo,
- harum voluptua conceptam cu eum.<br /><br />
- Placerat inimicus adolescens ne vim, eum legimus vulputate at. Pri cu omittam i
- nsolens. Aperiam atomorum expetendis ea nam. Ex errem homero cotidieque
- nam, in augue eirmod nam.Et vitae putant sententiae pri. Cu his affert probatus
- voluptatum, illum oporteat vis cu. Ea quo mollis ornatus imperdiet, denique
- vituperatoribus id vis. Ius eu choro repudiare sententiae.
- </span>
- </div>
- </div>
- <div id="contentspacer"> </div>
- <div id="comment">
- <div id="commentBox">
- <span class="commentBox">
- Kommentare
- </span>
- </div>
- <div align="center">
- <span class="commentDescription">
- Textmitteilung: 160 Zeichen, BB-Codes erlaubt.
- </span>
- </div>
- <hr />
- <div>
- <div align="left">
- <span class="commentUser">
- Username
- </span>
- </div>
- <div>
- <span class="comment">
- C O M M E N T | Lorem ipsum mel ea esse paulo consulatu, dicit facilisi salutatus ut nam.
- Ex deleniti sadipscing nec, ex dolor atomorum per. Aeque salutatus quaerendum
- ei vel, has vero aliquam aliquando ea. Viderer placerat nam ne. Est et placerat
- definiebas, zzril dictas ut sit, sapientem comprehensam vis at. Usu cu debet
- phaedrum. Eos at corpora adipisci signiferumque.<br /><br />
- </span>
- </div>
- <div align="right">
- <span class="commentDatum">
- 02.08.2008, 22:22
- </span>
- </div>
- </div>
- <br />
- <div>
- <div id="commentEditfeldDescription">
- <span class="commentUser">
- Name
- </span>
- </div>
- <div id="commentEditfeld">
- Editfeld einfügen
- </div>
- </div>
- <br />
- <div>
- <div id="commentEditfeldDescription">
- <span class="commentMitteilung">
- Mitteilung
- </span>
- </div>
- <div id="commentEditfeld">
- Editfeld II einfügen
- </div>
- </div>
- <br />
- <div>
- Absenden button
- </div>
- </div>
- </div>
- <br />
- <div id="spacer"> </div>
- <br />
- </div>
- <div id="footer"></div>
- </body>
- </html>