WordPress.org

Ready to get started?Download WordPress

Forums

Widget padding in Twenty Eleven (3 posts)

  1. RachelGoldstein71
    Member
    Posted 2 years ago #

    I'm using Twenty Eleven, and yes, I've made a child theme.

    I've given my widget a colored background, so now I need to pad it. The problem is, no matter how much I try to compensate with the width, any teeny tiny amount of padding pushes the whole widget down below the content. I've tried debugging this with Firebug. I just can't understand why I can't even add 1% of padding if I take 5-10% off the width!

    Doesn't that look like there should be plenty of space? I made it so skinny and it still pushes the widget down as soon as I add some padding. When I take the padding away, it moves back up, and I can make it a lot wider and it's still fine.

    If padding won't work, how can I slip another div in there to put padding in? (I can't do it within the Mad Mimi widget, need to do it in the style sheet somewhere)

    Thanks in advance!

  2. vtxyzzy
    Member
    Posted 2 years ago #

    The last entry in your child theme's style.css is missing a closing brace. Try adding this to the end:

    }
    .page-template-showcase-php section.recent-posts { margin: 0; }
  3. RachelGoldstein71
    Member
    Posted 2 years ago #

    That did it! Thanks vtxyzzy! I really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic