Adding three columns under "content" in left sidebar page type

Permalink Browser Info Environment
Okay - I admit my knowledge of CSS is rudimentary.

I would like to add three columns under "content" (right column) in the left sidebar page type.
I have included two images - "good" is what I would like to achieve - it only works when I include all sub-menus in the side navigation, thus pushing the boxes over.

I tried wrapping everything on the right side in "content" but it doesn't help:
<div id="wrapper">
   <div class="row">
      <div id="sidebar" class="col_3">
         <?php  
         $as = new Area('Sidebar');
         $as->display($c);
         ?>
      </div><!-- #sidebar ends -->
      <div id="content">
         <div class="col_9 omega">
            <?php  
            $a = new Area('Main');
            $a->display($c);
            ?>
         </div><!-- #col_9 ends -->

I tried floating and clearing, but I am not hitting on the correct combination.
Grateful for any help....

2 Attachments

Type: Discussion
Status: New
arlenesey
View Replies:
c5mix replied on at Permalink Reply
c5mix
The easiest way would just be to add a Layout in concrete5. Check that out:
http://www.concrete5.org/documentation/using-concrete5/in-page-edit...

But if you want to do it in the page type file, add the class="col_9 omega" back to the #content div. Then move this code up into the #content div after the Main area code so it looks like this:
<div id="content" class="col_9 omega">
                <?php 
            $a = new Area('Main');
            $a->display($c);
            ?>
<div class="col_3">
                                <?php
                                $a = new Area('Column One');
                                $a->display($c);
                                ?>
                        </div><!-- #col_3 ends -->
                        <div class="col_3">
                                <?php
                                $a = new Area('Column Two');
                                $a->display($c);
arlenesey replied on at Permalink Reply
arlenesey
Thank you! The coded solution worked perfectly. I don't like using Layout for responsive sites - I am not sure how it will work.
By the way the client loves the site - you are making me look good!
c5mix replied on at Permalink Reply
c5mix
You're very welcome!
Layouts are percentage-based so they will scaled down. Also, there's code in Slate that will make them collapse to one full width column once the browser reaches a certain size (on mobile).

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.