Creating 3 column layout on Andreas08 home template  Bottom

  • I am trying to do this with blocks:

    http://stevencopley.com/stuff/home_template_layout.jpg

    This is the original code to display the home page in standard Andreas08:

    Code

    <div id="theme_content">
    <!--[blockposition name=center]-->
    <div id="theme_splitcontentleft">
    <!--[blockposition name=right]-->
    </div>

    <div id="theme_splitcontentright">
    <!--[$maincontent]-->
    </div>
    </div>

    <div id="theme_subcontent">
    <!--[blockposition name=left]-->
    </div>


    And the accompanying CSS:

    Code

    #theme_content{
    float:left;
    width:75%;
    font-size:0.9em;
    padding:10px 0 0 10px;
    }

    and

    .theme_splitcontentleft{float:left; width:48%;}
    .theme_splitcontentright{float:right; width:48%;}


    And this is the edited home template:

    Code

    <div id="theme_content">
    <!--[blockposition name=center]-->

    <div id="theme_splitcontentleft">
    <!--[blockposition name=right]-->

    <div id="theme_splitcontentright">
    <!--[blockposition name=left_main]-->
    <!--[blockposition name=right_main]--></div>
    </div>
    </div>


    The result is the left_main block displaying on top of the right_main.


    Shouldn't these float left and float right and be even or am I still a CSS noob?



    edited by: jaenosjelantru, Apr 15, 2008 - 01:58 PM

    --
    [ stevencopley.com ]
  • GG, I answered my own question. I changed the home template to this:

    Code

    <div id="theme_content">
    <!--[blockposition name=center]-->

    <div id="theme_splitcontentleft">
    <!--[blockposition name=left_main]--></div>


    <div id="theme_splitcontentright">
    <!--[blockposition name=right_main]--></div>

    </div>


    And the CSS to this:

    Code

    #theme_splitcontentleft{float:left; width:48%;}
    #theme_splitcontentright{float:right; width:48%;}


    --
    [ stevencopley.com ]
  • without getting into your CSS

    Study overflow and clear

    --
    David Pahl
    Zikula Support Team
  • Ok, that is nice for the home template but now the master is jacked. I suppose I just need to create new elements for the home page and not jack with the others.

    Let me test!

    --
    [ stevencopley.com ]
  • Ok that worked. I answered my own seemingly ridiculous question.

    Pardon the interruption, move along please!

    --
    [ stevencopley.com ]
  • Thanks for the advice. I obviously need to read up on some CSS. I've just been getting by for a few years. Maybe it's time I actually learned it!

    --
    [ stevencopley.com ]
  • And for a framework for multi column layouts check out the YAML framework. It even contains a yaml builder where you can choose the layout and look at the code afterwards.
    The BlankTheme theme (Mateo, David and myself) is trying to get the builder into BlankTheme as well icon_smile BlankTheme is based upon YAML, so it contains all the flexibility and is PN ready.

    A List Apart Holy Grail 3 column layout is also very instructive.

    --
    campertoday.nl, Module development, Dutch Zikula Community

This list is based on users active over the last 60 minutes.