Tagged: sidebar background color
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?
Hey cloverco!
Try this:
.sidebar_right .widget{
}
If that doesn’t work, please post a link to your website.
Best regards,
Josue
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
Hey!
Add a padding rule with !important:
.sidebar_right .widget{
padding: 20px !important;
}
Regards,
Josue
Perfect. Thank you!
You are welcome, glad we could help :)
Regards,
Josue