Multiple DIV Layouts
Permalink
Hi everyone,
I found Concrete5 a few days ago when I saw a comment on a business forum I use. I had spent the past week trialing different systems and was all set to go with Modx, now though I think C5 will be better for my clients who would manage their own content.
I have been playing with modifying HTML templates and it has been fine but now I have a problem with one particular layout.
I would like a full width DIV on top with a 2 column DIV underneath. This is working fine as individual layouts but not combined?
Code is: Full Width
<div id="middleContainer">
<div id="adsContainer">
<?php
$a = new Area('Main Full');
$a->display($c);
?>
</div>
</div>
and 2 column:
<div id="middleContainer">
<div id="content">
<div id="leftPan">
<?php
$a = new Area('Column Left');
$a->display($c);
?>
</div>
<div id="rightPan">
<?php
$a = new Area('Column Right');
$a->display($c);
?>
</div>
</div>
</div>
For some reason I can't seem to merge the two?
Regards,
Matt
I found Concrete5 a few days ago when I saw a comment on a business forum I use. I had spent the past week trialing different systems and was all set to go with Modx, now though I think C5 will be better for my clients who would manage their own content.
I have been playing with modifying HTML templates and it has been fine but now I have a problem with one particular layout.
I would like a full width DIV on top with a 2 column DIV underneath. This is working fine as individual layouts but not combined?
Code is: Full Width
<div id="middleContainer">
<div id="adsContainer">
<?php
$a = new Area('Main Full');
$a->display($c);
?>
</div>
</div>
and 2 column:
<div id="middleContainer">
<div id="content">
<div id="leftPan">
<?php
$a = new Area('Column Left');
$a->display($c);
?>
</div>
<div id="rightPan">
<?php
$a = new Area('Column Right');
$a->display($c);
?>
</div>
</div>
</div>
For some reason I can't seem to merge the two?
Regards,
Matt
I was previously trying to place the other DIVs inside a single middleContainer, which I don't understand why it wouldn't work.
Making progress!