ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

A 3 Column Layout with Background Image Is Driving Me MAD!

October 18, 2007 6:03pm

Subscribe [1]
  • #1 / Oct 18, 2007 6:03pm

    kat96

    25 posts

    I’m working on a new site and I’ve designed it as a 3 column layout with a background image.

    THE PROBLEM
    On pages where the main content is just a paragraph or two, the background image doesn’t extend to the bottom of the sidebar - only to the bottom of the main content.

    I’ve tried a million (give or take a few) different things and I just can’t figure it out.

    I’d appreciate any and all ideas.

    THE SITE
    Here’s an example of a problem page:
    http://inspiredtoaction.com/index.php/site/comments/this_is_another_test_entry_poodles_are_cute/

    FYI - The site is called Inspired To Action and it’s mission is to “equip and inspire people to take action on behalf of those in need”:

    Thanks for your help!!!

    Kat

  • #2 / Oct 18, 2007 6:34pm

    Daniel Walton

    553 posts

    Iguess the 3 columns are floated? If so just put (assuming columns are floated left?)

    div#column-parent-container:after {
        content: ".";
        display: block;
        clear: left;
        height: 0;
        visibility: hidden;
    }
  • #3 / Oct 18, 2007 10:28pm

    kat96

    25 posts

    the_butcher,
    Thanks for your helpful reply.

    I’m afraid I’m not entirely clear on the usage though. Could you help clarify for me?

    The parent container is called wrapper, so I assume it should look like this:

    div#wrapper:after {
        content: ".";
        display: block;
        clear: left;
        height: 0;
        visibility: hidden;
    }

    But is something supposed to go in the “Content” property between the quotes where the . is?

    I’ve tried a couple things, but it’s not quite working for me yet.

    Thanks!

    Kat

  • #4 / Oct 18, 2007 10:31pm

    kat96

    25 posts

    Why do I always figure things out right after I post a question?

    I figured it out, I put my sidebar div where the . was and it all works brilliantly.

    Thank you SO much! I seriously appreciate it. You’re a genius.

    Kat

  • #5 / Oct 19, 2007 6:17am

    Daniel Walton

    553 posts

    Hmm… !?

    The “.” is the only intentional ‘content’.  All that does it print a “.” to your generated source code, block it, set it to clear (dragging your background down to the lowest column) and then hide the “.” from view.

    In theory :D

    All you’ve done by writing “sidebar” is made that appear in the generated source code rather than a plain old full stop.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases