17-09-2009, 01:29
Witam!
mam problem z divami, mianowicie robiac strone podzielilem ja na 4 czesci dwie na górze to loga, a nizej #menu i #tresc, problem polega na tym ze tlo w menu i tresci jest obrazkowe i gdy np: w #tresci jest wiecej napisow niz w # menu to niestety tlo nemu nie rozciaga sie rownomiernie z #trescia, jak mozna to zmienic?
Oto kod Css
kod html
mam problem z divami, mianowicie robiac strone podzielilem ja na 4 czesci dwie na górze to loga, a nizej #menu i #tresc, problem polega na tym ze tlo w menu i tresci jest obrazkowe i gdy np: w #tresci jest wiecej napisow niz w # menu to niestety tlo nemu nie rozciaga sie rownomiernie z #trescia, jak mozna to zmienic?
Oto kod Css
Kod:
html, body {
background-color: #F1D8AE;
color: #000;
margin: 0;
padding: 0;
}
#razem{
background-color: #F1D8AE;
padding: 0;
}
#logol{
margin-left: 12%;
width:265px;
height: 257px;
float: left;
overflow: hidden;
position: relative;
background-image: url(logol.jpg);
background-repeat: no-repeat;
}
#logo{
float: left;
width: 629px;
overflow: hidden;
position: relative;
height: 257px;
background-image: url(logo.jpg);
background-repeat: no-repeat;}
#menu{
margin-left: 12%;
float: left;
background-image: url(menu.jpg);
background-repeat: repeat-y;
width: 265px;
overflow: hidden;
position: relative;}
#tresc{
float: left;
width: 629px;
overflow: hidden;
position: relative;
background-image: url(tresc.jpg);
background-repeat: repeat-y}
kod html
Kod:
<BODY>
<div id="razem">
<div id="logol"></div>
<div id="logo"></div>
<div id="page">
<div id="menu">
<div align="center">
<br>Tresc
<br>Tresc
<br>Tresc
<br>Tresc
<br>Tresc
<br>Tresc
<br>Tresc
</div align>
</div>
<div id="tresc">
<div align="center">
<br>Tresc
<br>Tresc
<br>Tresc
</div align>
</div>
</div>
<div id="stopka"></div>
<div id="stopka1">Design by Zabir</div>
</BODY>
</HTML>