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ół.
<div id="content"> <div id="left"> <jdoc:include type="modules" name="left" style="xhtml" /> </div> <div id="center"> <div class="sport_menu"> <jdoc:include type="modules" name="sport_menu" style="xhtml" /> </div> <div id="tresc"> <jdoc:include type="modules" name="center" style="xhtml" /> </div> <jdoc:include type="component" /> </div> <div id="right"> <jdoc:include type="modules" name="right" style="xhtml" /> </div> </div>
#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; }