ThemeShaper Forums » Thematic


gaps in sidebar and content

(4 posts)
  • Started 9 years ago by craw
  • Latest reply from craw
  • This topic is not resolved
  1. craw

    I'm building a child theme and I have an issue I can seem to resolve.

    When I have a sidebar with content longer than the "content" area, there is a gap in background color for the content area.

    Same goes if I have my sidebar in place and the content is longer than the sidebar- gap in background color.

    Here is a page that is a good example

    Thanks for any help!

    Posted 9 years ago #
  2. It is just a clearing issue.

    Add to your CSS..

    #main { overflow: hidden; }

    For more info just visit and scroll down to "Float Clearing".

    Posted 9 years ago #
  3. idk if this is no longer needed in light of scott's link, but i add

    /* =new Clearfix
    -------------------------------------------------------------- */
    .clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
    * html .clearfix             { zoom: 1; } /* IE6 */
    *:first-child+html .clearfix { zoom: 1; } /* IE7 */

    to every theme i build. and add class="clearfix" to any element container floats.

    Posted 9 years ago #
  4. craw

    Thanks Scott and Helga! I'll give this a shot!

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.