Hallo Amin,
Vielleicht mal anders gefragt: Wie bekomme ich diese Seite dazu am Browserrand stehen zu bleiben wenn ich den Browser von rechts nach links verkleinere?
http://www.cssplay.co.uk/layouts/bodyfix.html
... indem du dasposition:absolute
entsorgst und statt mitleft
,top
undbottom
beimmargin-left
undmargin-right
mit dem Wertauto
operierst.Gruß Gernot
Hi Gernot,
hab ich jetzt mal ausprobiert:
#head {
background-image: url(Bilder/yun_2172.jpg);
margin: 50px auto 0;
width: 800px;
height: 148px;
}
#content {
border:1px solid #000000;
border-top: none;
margin-right:auto;
margin-left:auto;
margin-bottom:auto;
display:block;
overflow:auto;
top:225px;
width:800px;
}
<div id="head">asdf</div>
<div id="content">a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
a
</div>
Leider klappt dass jetzt mit dem overflow nicht mehr.