tak mam to takto.
tu su CSS kody:
div CELE
Kód:
#cele {
position: relative;
top: 5px;
text-align: left;
width: 770px;
margin: auto;
height: 100%;
background-image: url("cesta/img.gif"); background-repeat: repeat-y; color: #ffffff; background-color: #ffffff;
}
divi s OBSAHOM
Kód:
#text_hore {
position: absolute;
left: 5px;
top: 150px;
width: 250px;
height: 100%;
margin: 0 auto;
float:right;
}
#text_dole {
position:absolute;
left: 5px;
width: 515px;
height: 100%;
margin: 0 auto;
float:right;
}
v HTML to mam potom zapisane asi takto:
< -- hlavicka -->
< -- telo -->
<div id="cele">
<div id="text_hore">
Nieco co som pisal
este raz a sssssdsa
dfasdf.
</div>
<div id="text_dole">
asdfsadf
dsfgsdfgdfgsdg
</div>
</div>
pozadie DIVu CELE by sa malo natahovat podla toho, aky je text dlhy. footer mam bottom: 0px; a v dive CELE, cize podla toho sa da na spodok aj footer. ale on je na vrchu sranky lebo to CELE sa nenatahuje podla obsahu