Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #198766

    I would like to add a background color to just the sidebar on pages and posts. When I try to use the .sidebar_right class the color I select shows up behind the entire main content area. Any suggestions?

    #198772

    Hey cloverco!

    Try this:

    .sidebar_right .widget{
    }

    If that doesn’t work, please post a link to your website.

    Best regards,
    Josue

    #198783

    Thanks for the quick reply. That worked! I’d still like to get the color about 20px beyond the widget content in all directions. Not having any luck adjusting padding or margin.
    http://stopreservationshopping.com

    #198786

    Hey!

    Add a padding rule with !important:

    .sidebar_right .widget{
    padding: 20px !important;
    }
    

    Regards,
    Josue

    #198787

    Perfect. Thank you!

    #198789

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding background color to sidebar?’ is closed to new replies.