div-Layer Problem (Überlappung)

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • div-Layer Problem (Überlappung)

    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

    Quellcode

    1. /*------------------- Main ----------------------- */
    2. body{
    3. background-color:#665849;
    4. background-image:url(images/headerbg.gif);
    5. background-position:top;
    6. background-repeat:repeat-x;
    7. margin:0px;
    8. width:auto;
    9. }
    10. html, body {
    11. margin: 0;
    12. padding: 0;
    13. height: 100%;
    14. }
    15. #main{
    16. margin:0px auto; /*Zentrierung sämtlicher div-Layer*/
    17. width:1000px;
    18. z-index:1;
    19. }
    20. /*------------------ Header --------------------*/
    21. #imprint {
    22. height:29px;
    23. line-height:29px;
    24. }
    25. #logo {
    26. background-image:url(images/logo.gif);
    27. background-repeat:no-repeat;
    28. height:109px;
    29. width:229px;
    30. }
    31. #navigation {
    32. height:33px;
    33. line-height:33px;
    34. }
    35. /*------------------ Content --------------------*/
    36. #comment {
    37. float:right;
    38. background-color:#EEEDE8;
    39. border: 1px solid #000000;
    40. height:auto;
    41. padding-bottom:15px;
    42. padding-left:15px;
    43. padding-right:15px;
    44. padding-top:15px;
    45. width:30%;
    46. }
    47. #commentBox{
    48. background-color:#DBDAD6;
    49. border: 1px solid #999895;
    50. padding: 8px 8px 8px 8px;
    51. }
    52. #commentEditfeld {
    53. float:right;
    54. }
    55. #commentEditfeldDescription{
    56. float:left;
    57. }
    58. #content {
    59. float:left;
    60. background-color:#EEEDE8;
    61. border: 1px solid #000000;
    62. height:auto;
    63. padding-bottom:15px;
    64. padding-left:15px;
    65. padding-right:15px;
    66. padding-top:15px;
    67. width:60%;
    68. }
    69. #contentKategorie {
    70. float:left;
    71. }
    72. #contentDatum {
    73. float:right;
    74. }
    75. #contentspacer {
    76. float:left;
    77. height:auto;
    78. width:29px;
    79. }
    80. #spacer {
    81. height:29px;
    82. width:1000px;
    83. }
    84. /*------------------ Footer ---------------------*/
    85. #footer{
    86. background-color:#665849;
    87. background-image:url(images/footerbg.gif);
    88. background-repeat:repeat-x;
    89. bottom: 0 !important;
    90. bottom: -1px;
    91. height:131px;
    92. position: absolute;
    93. width:100%;
    94. z-index:2;
    95. }
    96. /*------------------ Font -----------------------*/
    97. .comment {
    98. color:#585857;
    99. font-family: Tahoma, Arial;
    100. font-size:9pt;
    101. text-decoration:none;
    102. text-align:justify;
    103. }
    104. .commentBox {
    105. color:#333333;
    106. font-family: Tahoma, Arial;
    107. font-size:9pt;
    108. text-decoration:none;
    109. font-weight:bold;
    110. }
    111. .commentDescription {
    112. color:#333333;
    113. font-family: Tahoma, Arial;
    114. font-size:8pt;
    115. text-decoration:none;
    116. }
    117. .commentUser {
    118. color:#333333;
    119. font-family: Tahoma, Arial;
    120. font-size:8pt;
    121. text-decoration:none;
    122. font-weight:bold;
    123. }
    124. .commentMitteilung {
    125. color:#333333;
    126. font-family: Tahoma, Arial;
    127. font-size:8pt;
    128. text-decoration:none;
    129. font-weight:bold;
    130. }
    131. .commentDatum {
    132. color:#333333;
    133. font-family: Tahoma, Arial;
    134. font-size:8pt;
    135. text-decoration:none;
    136. }
    137. .content {
    138. color:#585857;
    139. font-family: Tahoma, Arial;
    140. font-size:9pt;
    141. text-decoration:none;
    142. text-align:justify;
    143. }
    144. .contentHeadline {
    145. color:#585857;
    146. font-family: Tahoma, Arial;
    147. font-size:16pt;
    148. text-decoration:none;
    149. }
    150. .contentKategorie {
    151. color:#585857;
    152. font-family: Tahoma, Arial;
    153. font-size:8pt;
    154. text-decoration:none;
    155. }
    156. .contentDatum {
    157. color:#585857;
    158. font-family: Tahoma, Arial;
    159. font-size:8pt;
    160. text-decoration:none;
    161. }
    162. .imprint {
    163. color:#A0A09B;
    164. font-family: Tahoma, Arial;
    165. font-size:10pt;
    166. text-decoration:none;
    167. text-align:center;
    168. }
    169. .imprint a:active, a:link, a:visited{
    170. color:#A0A09B;
    171. font-family: Tahoma, Arial;
    172. font-size:10pt;
    173. text-decoration:none;
    174. }
    175. .imprint a:hover {
    176. color:#E82C35;
    177. font-family: Tahoma, Arial;
    178. font-size:10pt;
    179. text-decoration:none;
    180. }
    181. .navigation {
    182. color:#A0A09B;
    183. font-family: Tahoma, Arial;
    184. font-size:10pt;
    185. text-decoration:none;
    186. text-align:center;
    187. }
    188. .navigation a:active, a:link, a:visited{
    189. color:#A0A09B;
    190. font-family: Tahoma, Arial;
    191. font-size:10pt;
    192. text-decoration:none;
    193. }
    194. .navigation a:hover {
    195. color:#E82C35;
    196. font-family: Tahoma, Arial;
    197. font-size:11pt;
    198. text-decoration:none;
    199. font-weight:bold;
    200. }
    Alles anzeigen

    Quellcode

    1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    2. <html>
    3. <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    5. <title>Senca.de</title>
    6. <link href="css.css" rel="stylesheet" type="text/css">
    7. </head>
    8. <body>
    9. <div id="main">
    10. <div id="imprint" align="right">
    11. <span class="imprint">
    12. <a href="#">Impressum</a> | <a href="#">Kontakt</a> | <a href="#">Sitemap</a>
    13. </span>
    14. </div>
    15. <div id="logo" align="left"></div>
    16. <div id="navigation" align="left">
    17. <span class="navigation">
    18. <a href="#"><b>Login</b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    19. <a href="#">Startseite</a>&nbsp;&nbsp;&nbsp;&nbsp;
    20. <a href="#">Content</a>&nbsp;&nbsp;&nbsp;&nbsp;
    21. <a href="#">Blog</a>&nbsp;&nbsp;&nbsp;&nbsp;
    22. <a href="#">G&auml;stebuch</a>
    23. </span>
    24. </div>
    25. <div id="spacer"></div>
    26. <div>
    27. <div id="content">
    28. <div>
    29. <span class="contentHeadline">
    30. Dies ist eine &Uuml;berschrift einer neuen Mitteilung
    31. </span>
    32. </div>
    33. <div>
    34. <div id="contentKategorie" align="left">
    35. <span class="contentKategorie">
    36. Kategorie: Neues von Senca.de
    37. </span>
    38. </div>
    39. <div id="contentDatum" align="right">
    40. <span class="contentDatum">
    41. Datum: 2. August 2008
    42. </span>
    43. </div>
    44. </div>
    45. <br />
    46. <hr />
    47. <div>
    48. <span class="content">
    49. C O N T E N T | LoremLorem ipsum mel ea esse paulo consulatu, dicit facilisi salutatus ut nam.
    50. Ex deleniti sadipscing nec, ex dolor atomorum per. Aeque salutatus quaerendum
    51. ei vel, has vero aliquam aliquando ea. Viderer placerat nam ne. Est et placerat
    52. definiebas, zzril dictas ut sit, sapientem comprehensam vis at. Usu cu debet
    53. phaedrum. Eos at corpora adipisci signiferumque.<br /><br />
    54. Te brute libris referrentur cum, mazim omnes eum ea, malis facete pro at.
    55. Vis eu odio singulis, sea primis latine ut, accumsan sententiae in vix. Sit ut porro
    56. idisse. Epicuri oportere ne vix, enim duis consequat vix cu. Vel ea veritus delicata,
    57. assum periculis gubergren sea ex. Cu solum euismod est, ea sit facete quaestio
    58. efficiendi. Cum id modus volumus officiis, id rebum corpora interesset quo,
    59. harum voluptua conceptam cu eum.<br /><br />
    60. Placerat inimicus adolescens ne vim, eum legimus vulputate at. Pri cu omittam i
    61. nsolens. Aperiam atomorum expetendis ea nam. Ex errem homero cotidieque
    62. nam, in augue eirmod nam.Et vitae putant sententiae pri. Cu his affert probatus
    63. voluptatum, illum oporteat vis cu. Ea quo mollis ornatus imperdiet, denique
    64. vituperatoribus id vis. Ius eu choro repudiare sententiae.
    65. </span>
    66. </div>
    67. </div>
    68. <div id="contentspacer">&nbsp;</div>
    69. <div id="comment">
    70. <div id="commentBox">
    71. <span class="commentBox">
    72. Kommentare
    73. </span>
    74. </div>
    75. <div align="center">
    76. <span class="commentDescription">
    77. Textmitteilung: 160 Zeichen, BB-Codes erlaubt.
    78. </span>
    79. </div>
    80. <hr />
    81. <div>
    82. <div align="left">
    83. <span class="commentUser">
    84. Username
    85. </span>
    86. </div>
    87. <div>
    88. <span class="comment">
    89. C O M M E N T | Lorem ipsum mel ea esse paulo consulatu, dicit facilisi salutatus ut nam.
    90. Ex deleniti sadipscing nec, ex dolor atomorum per. Aeque salutatus quaerendum
    91. ei vel, has vero aliquam aliquando ea. Viderer placerat nam ne. Est et placerat
    92. definiebas, zzril dictas ut sit, sapientem comprehensam vis at. Usu cu debet
    93. phaedrum. Eos at corpora adipisci signiferumque.<br /><br />
    94. </span>
    95. </div>
    96. <div align="right">
    97. <span class="commentDatum">
    98. 02.08.2008, 22:22
    99. </span>
    100. </div>
    101. </div>
    102. <br />
    103. <div>
    104. <div id="commentEditfeldDescription">
    105. <span class="commentUser">
    106. Name
    107. </span>
    108. </div>
    109. <div id="commentEditfeld">
    110. Editfeld einfügen
    111. </div>
    112. </div>
    113. <br />
    114. <div>
    115. <div id="commentEditfeldDescription">
    116. <span class="commentMitteilung">
    117. Mitteilung
    118. </span>
    119. </div>
    120. <div id="commentEditfeld">
    121. Editfeld II einfügen
    122. </div>
    123. </div>
    124. <br />
    125. <div>
    126. Absenden button
    127. </div>
    128. </div>
    129. </div>
    130. <br />
    131. <div id="spacer">&nbsp;</div>
    132. <br />
    133. </div>
    134. <div id="footer"></div>
    135. </body>
    136. </html>
    Alles anzeigen