28.04.2013, 21:14
Hallo Leute,
Ich habe ein Problem und zwar möchte ich eine Box oben haben mit 80px und width: 100% und die 2. sollte darunter liegen mit overflow:hide und den Rest der Seite ausfüllen. Ich poste weiter unter meinen Quellecode ein sowie eine kleines Bild zur Veranschaulichung von meinem kleinen Problem.
Problem: Das habe ich soweit hinbekommen, jedoch geht die Scrollbar über das Browserfenster (Chrome, Firefox und IE) hinaus...
Bild:
http://1.2.3.9/bmi/www10.pic-upload.de/28.04.13/cb3snq2fuiy.png(!https)
Code:
Mit freundlichen Grüßen
Moser Michael
Ich habe ein Problem und zwar möchte ich eine Box oben haben mit 80px und width: 100% und die 2. sollte darunter liegen mit overflow:hide und den Rest der Seite ausfüllen. Ich poste weiter unter meinen Quellecode ein sowie eine kleines Bild zur Veranschaulichung von meinem kleinen Problem.
Problem: Das habe ich soweit hinbekommen, jedoch geht die Scrollbar über das Browserfenster (Chrome, Firefox und IE) hinaus...
Bild:
http://1.2.3.9/bmi/www10.pic-upload.de/28.04.13/cb3snq2fuiy.png(!https)
Code:
Zitat:
<!DOCTYPE html>
<html>
<head>
<style>
#oben
{
background: red;
position: fixed;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
}
#unten
{
position: absolute;
top: 80px;
height: 100%;
width:100%;
background: yellow;
overflow: auto;
}
</style>
</head>
<body>
<div id="oben" />
<div id="unten">
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
</div>
</body>
</html>
<html>
<head>
<style>
#oben
{
background: red;
position: fixed;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
}
#unten
{
position: absolute;
top: 80px;
height: 100%;
width:100%;
background: yellow;
overflow: auto;
}
</style>
</head>
<body>
<div id="oben" />
<div id="unten">
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
hallo<br />
</div>
</body>
</html>
Gegenleistung:
- Danke
- ...
Mit freundlichen Grüßen
Moser Michael