docxxx
19-03-2010, 22:48
Dziwna sprawa. Jest sobie prosty kod, ktory jest szkieletem strony (tu wersja okrojona, aby nie zasmiecac):
<div id = "centerwrapper">
<div id = "leftwrapper">
<div id = "leftcontent">
<jdoc:include type="modules" name="leftcontent" style="xhtml" />
</div>
</div>
<div id = "mainwrapper">
<div id = "maincontent">
<jdoc:include type="component" />
</div>
</div>
<div id = "rightwrapper">
<div id = "rightcontent">
<jdoc:include type="modules" name="rightcontent" style="xhtml" />
</div>
</div>
</div>
Nie wiem dlaczego, ale centerwrapper zawsze ma zerowa wysokosc. Atrybut height nie jest przypisany w css, ale nie musi, bo zagnieszczony joomlowy component sam "rozszerza" diva. Co dziwne, div o id maincontent ma juz prawidlowa wysokosc.
Jest mi to potrzebne do nadania tla pod centerwrappera. Obecnie nie mozna tego zrobic. Jedynie maincontent jest prawidlowo "generowany".
<div id = "centerwrapper">
<div id = "leftwrapper">
<div id = "leftcontent">
<jdoc:include type="modules" name="leftcontent" style="xhtml" />
</div>
</div>
<div id = "mainwrapper">
<div id = "maincontent">
<jdoc:include type="component" />
</div>
</div>
<div id = "rightwrapper">
<div id = "rightcontent">
<jdoc:include type="modules" name="rightcontent" style="xhtml" />
</div>
</div>
</div>
Nie wiem dlaczego, ale centerwrapper zawsze ma zerowa wysokosc. Atrybut height nie jest przypisany w css, ale nie musi, bo zagnieszczony joomlowy component sam "rozszerza" diva. Co dziwne, div o id maincontent ma juz prawidlowa wysokosc.
Jest mi to potrzebne do nadania tla pod centerwrappera. Obecnie nie mozna tego zrobic. Jedynie maincontent jest prawidlowo "generowany".