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
Alles anzeigen
Meine CSS-Datei
Alles anzeigen
Mit freundlichen Grüßen
DestinatioN
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
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Webseite</title>
- <link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
- </head>
- <body>
- <div id="header">
- <div id="headerInner">
- <div id="headerLogo">
- </div>
- <div id="headerHeadline">
- <h1>Fast-Execution</h1>
- </div>
- </div>
- </div>
- <div id="container">
- <div id="containerInner">
- <div id="MainMenu">
- <ul id="menu-bar">
- <li class="MainMenuItem" <?php if(isset($_GET['page']) && $_GET['page'] == 'Startseite'){ echo 'class="active"'; } ?>>
- <a href="index.php?page=startseite" title="Startseite" >
- Startseite
- </a>
- </li>
- <li class="MainMenuItem">
- <a href="index.php?page=test" title="Test" >
- Test
- </a>
- <ul>
- <li class="MainMenuItem"><a href="#">SubMenu Test 1</a></li>
- <li class="MainMenuItem"><a href="#">SubMenu Test 2</a></li>
- <li class="MainMenuItem"><a href="#">SubMenu Test 3</a></li>
- </ul>
- </li>
- </ul>
- </div>
- <div id="spacer"></div>
- <div id="content" class="div-box">
- <h2>Guten Tag</h2>
- <p>Dies ist eine Testseite von Fast-Execution.</p>
- <p>Es kann sein, dass die Seite nicht voll Funktionisfähig ist,</p>
- <p>weil manche Funktionen noch nicht geschrieben oder das Design noch nicht angepasst ist.</p>
- <p>Besuchen sie diese Seite zu einem späteren Zeitpunkt erneut.</p>
- <p>Vielleicht ist dann die gewünschte Funktion verfügbar.</p>
- </div>
- </div>
- </div>
- <div id="footer">
- <div id="footerInner">
- <div id="copyright">
- <p>Copyright 2014 <a href="http://fast-execution.de/">Fast-Execution</a></p>
- <p>Code and Design by <a>DestinatioN</a></p>
- </div>
- </div>
- </div>
- </body>
- </html>
Meine CSS-Datei
Quellcode
- body{
- position: absolute;
- height: 100%;
- min-height: 100%;
- width: 100%;
- min-width: 600px;
- top: 0px;
- left: 0px;
- background: #fff;
- color: #000;
- padding: 0px;
- margin: auto;
- font-family: Arial;
- font-size: 16px;
- line-height: 1.4em;
- font-weight: bold;
- }
- #header{
- position:fixed;
- height: auto;
- background-color: #2a5d84;
- color: #fff;
- width: 100%;
- z-index: 100;
- height: 70px;
- left: 0px;
- right: 0px;
- overflow:hidden;
- }
- #headerInner{
- width: 900px;
- margin: auto;
- }
- #headerLogo{
- }
- #headerHeadline{
- }
- #container{
- position: absolute;
- top: 90px;
- bottom: -55px;
- width: 100%;
- margin: auto;
- z-index: 1;
- overflow: auto;
- }
- #containerInner{
- width: 900px;
- margin: auto;
- }
- #menu-bar {
- position:relative;
- background: #2A5D84;
- height: 54px;
- line-height: 100%;
- margin: 0px;
- padding: 0px;
- z-index:100;
- }
- #menu-bar li {
- position: relative;
- margin: 0px 0px 0px 0px;
- padding: 0px 0px 0px 0px;
- float: left;
- list-style: none;
- }
- #menu-bar a {
- color: #FFFFFF;
- text-decoration: none;
- display: block;
- padding: 18px 20px 20px 20px;
- margin: 0;
- margin-bottom: 0px;
- font-weight: bolder;
- font-family: arial;
- font-style: normal;
- font-size: 18px;
- }
- #menu-bar li ul li a {
- margin: 0;
- }
- #menu-bar .active a, #menu-bar li:hover > a {
- background: #0399D4;
- color: #FFFFFF;
- }
- #menu-bar ul li:hover a, #menu-bar li:hover li a {
- background: none;
- color: #666;
- border: none;
- }
- #menu-bar ul a:hover {
- background: #0399D4 !important;
- color: #FFFFFF !important;
- }
- #menu-bar li:hover > ul {
- display: block;
- }
- #menu-bar ul {
- position: absolute;
- width: 200px;
- top: 54px;
- left: 0;
- background: #2A5D84;
- display: none;
- margin: 0;
- padding: 0;
- }
- #menu-bar ul li {
- float: none;
- margin: 0;
- padding: 0;
- }
- #menu-bar ul a {
- color:#FFFFFF !important;
- padding:10px 0px 10px 10px;
- font-size:16px;
- font-style:normal;
- font-family:arial;
- font-weight: normal;
- }
- #menu-bar ul li:first-child > a {
- margin-top: -5px;
- }
- #menu-bar ul li:last-child > a {
- }
- #menu-bar:after {
- display: block;
- content: ".";
- clear: both;
- visibility: hidden;
- line-height: 0;
- height: 0;
- }
- #menu-bar {
- display: inline-block;
- }
- html[xmlns] #menu-bar {
- display: block;
- }
- * html #menu-bar {
- height: 1%;
- }
- #spacer {
- width: 900px;
- height: 20px;
- }
- #content {
- position: relative;
- width: 900px;
- font-size: 18px;
- }
- #footer{
- position: fixed;
- height: 50px;
- background-color: #888;
- color: #fff;
- width: 100%;
- bottom: -1px;
- line-height: 0.8;
- word-wrap: break-word;
- font-size: 12px;
- overflow:hidden;
- }
- #footerInner{
- width: 900px;
- margin: auto;
- }
- #copyright{
- margin: auto;
- }
Mit freundlichen Grüßen
DestinatioN