Support » Fixing WordPress » Widget padding in Twenty Eleven

  • 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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; }

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget padding in Twenty Eleven’ is closed to new replies.