Witam,
robię szablon pod joomla i mam mały problem. Chcę żeby div center powiększał się na całą szerokość strony gdy wyłączę w Joomli bloki. Ustawiłem width na 100 % i wszystko by było ok. gdyby nie to, że poszerza się nawet wtedy gdy mam włączone boczne bloki i spycha je na dół.
<jdoc:include type="modules" name="left" style="xhtml" />
<jdoc:include type="modules" name="sport_menu" style="xhtml" />
<jdoc:include type="modules" name="center" style="xhtml" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="right" style="xhtml" />
#content {
width: 1024px;
margin: auto;
height: auto;
background-color: #736D61;
overflow: auto;
}
#left {
font-size:12px;
width: 165px;
margin-left:4px;
margin-right: 4px;
margin-top:7px;
margin-bottom:7px;
float: left;
overflow: hidden;
background-color: #736D61;
}
#center {
margin-top: 7px;
width:678px;
background-color: #F8F7E9;
float: left;
overflow: hidden;
margin-bottom:15px;
}
#tresc{
margin-top: 38px;
}
#right {
font-size:12px;
width: 165px;
margin-left:4px;
margin-right: 4px;
margin-top:7px;
margin-bottom:7px;
float: right;
overflow: hidden;
background-color: #736D61;
}