Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2006
    Location
    Lostwithiel, Cornwall
    Posts
    69
    Plugin Contributions
    0

    Default Three Column Layout

    Hi

    I want to put together a three column design where the usual left and right columns sit together to the right of the centre column. i.e.

    Usual:
    left centre right

    Needed:
    centre left right

    Is this possible please? I really need to know if it is possible - I'll have a go if it is! If there is tutorials that might help - excellent.

    Many thanks.

    Rich

    P.S. Centre is definitely spelt centre!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Three Column Layout

    Rearrange the columns in your tpl_main_page.php
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Three Column Layout

    Kim's shown where ... here's one possible how.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Oct 2006
    Location
    Lostwithiel, Cornwall
    Posts
    69
    Plugin Contributions
    0

    Default Re: Three Column Layout

    Hi

    Thanks for the replies so far! If you take a look at:
    http://www.nanadobbie.com/index.html
    You will see what we hope to achieve!

    Now take a look at:
    http://www.nanadobbie.com/index.php
    It is starting to get there but things won't stay in their columns. I think if you look at my code it has something to do with the div called wrapper. Not sure quite where to place this. Any ideas please?

    Thanks

    Rich

    P.S. Peter - I'm getting more adventurous! I'll send the erp stuff through tomorrow hopefully.

  5. #5
    Join Date
    Oct 2006
    Location
    Lostwithiel, Cornwall
    Posts
    69
    Plugin Contributions
    0

    Default Re: Three Column Layout

    Hi

    On one step. I can see I have to play with tpl_main_page.php. i.e. Re-ordering of columns etc. I'm just a little unsure of the php. Don't want to go breaking it!

    If I move blocks of divs in one go will that break the php. e.g.
    <td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
    <?php
    /**
    * prepares and displays left column sideboxes
    *
    */
    ?>
    <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>
    <?php
    }
    ?>
    <td valign="top">
    <!-- bof breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->

    <?php
    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>

    <!-- bof upload alerts -->
    <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
    <!-- eof upload alerts -->
    If so, I will be able to sort it out, I think! Still would appreciate a little help though please!

    Thanks

    Rich

  6. #6
    Join Date
    Oct 2006
    Location
    Lostwithiel, Cornwall
    Posts
    69
    Plugin Contributions
    0

    Default Re: Three Column Layout

    Hi Guys

    OK - as you can see I have got quite a bit further on. However, if we click on a category link the footer does something weird.

    Any ideas why please?

    Thanks

    Rich

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Three Column Layout

    As you say, you have moved this forward a long way, but the XHTML is a bit off. There are some tags closing non-existent table cells and a quick glance suggests that your wrapper div is closed after the "centre" column. Also there are different positioning types being mixed here, some are in the document flow and others have been floated out of it.

    To clean it up I recommend making sure that wrapper goes around all three columns but is closed before the footer, then inserting a <br /> tag between the wrapper and the footer and ensuring that it clears everything. This will have the effect of reseting your document flow from that point and preventing the footer from going searching for free space higher up, when your centre column is short.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Space between left layout column and right content column
    By eazy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Mar 2013, 02:16 AM
  2. Three Column Grid for New/All Products
    By DallasNovelty in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Feb 2011, 12:47 PM
  3. Zenfish Three Column Template
    By magicbox in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Jan 2011, 06:50 PM
  4. three changes to layout
    By powelli in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jan 2010, 04:01 PM
  5. Three Languages with three different menu
    By sandrapaula in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Oct 2007, 03:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg