Webseite - Ich finde den Fehler nicht

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

  • Webseite - Ich finde den Fehler nicht

    Hallo,
    ich habe mal eine kleine Webseite erstellt, welche einfach nur dafür gedacht ist ein bisschen Text anzuzeigen.
    Allerdings habe ich ein Problem mit der Scrollbar.

    Dies ist die betroffene Seite http://fast-execution.de/test-bereich/

    Und hier ist mein Problem. Auf dem Bild sind die einzelnen divs Rot umrandet (Header und Footer gehen rechts über die Scrollbar. Das ist ein Fehler von mir in GIMP).
    Trotzdessen, dass die Seite hier nur so wenig content im Content div hat, wird die Scrollbar angezeigt.

    Da ich den Fehler selber nicht finde, hoffe ich, dass sich mir hier jemand helfen kann.

    [Blockierte Grafik: http://img5.fotos-hochladen.net/uploads/unbenanntvekpqrs6b5.png]


    Mein HTML-Code

    PHP-Quellcode

    1. ​<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2. <html xmlns="http://www.w3.org/1999/xhtml">
    3. <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    5. <title>Webseite</title>
    6. <link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
    7. </head>
    8. <body>
    9. <div id="header">
    10. <div id="headerInner">
    11. <div id="headerLogo">
    12. </div>
    13. <div id="headerHeadline">
    14. <h1>Fast-Execution</h1>
    15. </div>
    16. </div>
    17. </div>
    18. <div id="container">
    19. <div id="containerInner">
    20. <div id="MainMenu">
    21. <ul id="menu-bar">
    22. <li class="MainMenuItem" <?php if(isset($_GET['page']) && $_GET['page'] == 'Startseite'){ echo 'class="active"'; } ?>>
    23. <a href="index.php?page=startseite" title="Startseite" >
    24. Startseite
    25. </a>
    26. </li>
    27. <li class="MainMenuItem">
    28. <a href="index.php?page=test" title="Test" >
    29. Test
    30. </a>
    31. <ul>
    32. <li class="MainMenuItem"><a href="#">SubMenu Test 1</a></li>
    33. <li class="MainMenuItem"><a href="#">SubMenu Test 2</a></li>
    34. <li class="MainMenuItem"><a href="#">SubMenu Test 3</a></li>
    35. </ul>
    36. </li>
    37. </ul>
    38. </div>
    39. <div id="spacer"></div>
    40. <div id="content" class="div-box">
    41. <h2>Guten Tag</h2>
    42. <p>Dies ist eine Testseite von Fast-Execution.</p>
    43. <p>Es kann sein, dass die Seite nicht voll Funktionisfähig ist,</p>
    44. <p>weil manche Funktionen noch nicht geschrieben oder das Design noch nicht angepasst ist.</p>
    45. <p>Besuchen sie diese Seite zu einem späteren Zeitpunkt erneut.</p>
    46. <p>Vielleicht ist dann die gewünschte Funktion verfügbar.</p>
    47. </div>
    48. </div>
    49. </div>
    50. <div id="footer">
    51. <div id="footerInner">
    52. <div id="copyright">
    53. <p>Copyright 2014 <a href="http://fast-execution.de/">Fast-Execution</a></p>
    54. <p>Code and Design by <a>DestinatioN</a></p>
    55. </div>
    56. </div>
    57. </div>
    58. </body>
    59. </html>
    Alles anzeigen


    Meine CSS-Datei

    Quellcode

    1. ​body{
    2. position: absolute;
    3. height: 100%;
    4. min-height: 100%;
    5. width: 100%;
    6. min-width: 600px;
    7. top: 0px;
    8. left: 0px;
    9. background: #fff;
    10. color: #000;
    11. padding: 0px;
    12. margin: auto;
    13. font-family: Arial;
    14. font-size: 16px;
    15. line-height: 1.4em;
    16. font-weight: bold;
    17. }
    18. #header{
    19. position:fixed;
    20. height: auto;
    21. background-color: #2a5d84;
    22. color: #fff;
    23. width: 100%;
    24. z-index: 100;
    25. height: 70px;
    26. left: 0px;
    27. right: 0px;
    28. overflow:hidden;
    29. }
    30. #headerInner{
    31. width: 900px;
    32. margin: auto;
    33. }
    34. #headerLogo{
    35. }
    36. #headerHeadline{
    37. }
    38. #container{
    39. position: absolute;
    40. top: 90px;
    41. bottom: -55px;
    42. width: 100%;
    43. margin: auto;
    44. z-index: 1;
    45. overflow: auto;
    46. }
    47. #containerInner{
    48. width: 900px;
    49. margin: auto;
    50. }
    51. #menu-bar {
    52. position:relative;
    53. background: #2A5D84;
    54. height: 54px;
    55. line-height: 100%;
    56. margin: 0px;
    57. padding: 0px;
    58. z-index:100;
    59. }
    60. #menu-bar li {
    61. position: relative;
    62. margin: 0px 0px 0px 0px;
    63. padding: 0px 0px 0px 0px;
    64. float: left;
    65. list-style: none;
    66. }
    67. #menu-bar a {
    68. color: #FFFFFF;
    69. text-decoration: none;
    70. display: block;
    71. padding: 18px 20px 20px 20px;
    72. margin: 0;
    73. margin-bottom: 0px;
    74. font-weight: bolder;
    75. font-family: arial;
    76. font-style: normal;
    77. font-size: 18px;
    78. }
    79. #menu-bar li ul li a {
    80. margin: 0;
    81. }
    82. #menu-bar .active a, #menu-bar li:hover > a {
    83. background: #0399D4;
    84. color: #FFFFFF;
    85. }
    86. #menu-bar ul li:hover a, #menu-bar li:hover li a {
    87. background: none;
    88. color: #666;
    89. border: none;
    90. }
    91. #menu-bar ul a:hover {
    92. background: #0399D4 !important;
    93. color: #FFFFFF !important;
    94. }
    95. #menu-bar li:hover > ul {
    96. display: block;
    97. }
    98. #menu-bar ul {
    99. position: absolute;
    100. width: 200px;
    101. top: 54px;
    102. left: 0;
    103. background: #2A5D84;
    104. display: none;
    105. margin: 0;
    106. padding: 0;
    107. }
    108. #menu-bar ul li {
    109. float: none;
    110. margin: 0;
    111. padding: 0;
    112. }
    113. #menu-bar ul a {
    114. color:#FFFFFF !important;
    115. padding:10px 0px 10px 10px;
    116. font-size:16px;
    117. font-style:normal;
    118. font-family:arial;
    119. font-weight: normal;
    120. }
    121. #menu-bar ul li:first-child > a {
    122. margin-top: -5px;
    123. }
    124. #menu-bar ul li:last-child > a {
    125. }
    126. #menu-bar:after {
    127. display: block;
    128. content: ".";
    129. clear: both;
    130. visibility: hidden;
    131. line-height: 0;
    132. height: 0;
    133. }
    134. #menu-bar {
    135. display: inline-block;
    136. }
    137. html[xmlns] #menu-bar {
    138. display: block;
    139. }
    140. * html #menu-bar {
    141. height: 1%;
    142. }
    143. #spacer {
    144. width: 900px;
    145. height: 20px;
    146. }
    147. #content {
    148. position: relative;
    149. width: 900px;
    150. font-size: 18px;
    151. }
    152. #footer{
    153. position: fixed;
    154. height: 50px;
    155. background-color: #888;
    156. color: #fff;
    157. width: 100%;
    158. bottom: -1px;
    159. line-height: 0.8;
    160. word-wrap: break-word;
    161. font-size: 12px;
    162. overflow:hidden;
    163. }
    164. #footerInner{
    165. width: 900px;
    166. margin: auto;
    167. }
    168. #copyright{
    169. margin: auto;
    170. }
    Alles anzeigen



    Mit freundlichen Grüßen
    DestinatioN