Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] How to set widgets background different in left and right sidebars? (http://forum.bytesforall.com/showthread.php?t=4843)

braids Dec 12, 2009 06:24 AM

[SOLVED] How to set widgets background different in left and right sidebars?
 
I think no one has ever asked this question before. I set my left and right sidebars in different background color. I would like to have my widgets in the left sidebar to have background color matching that of the left sidebar, and the same for the widgets in the right sidebar. Nevertheless, I couldn't get this to work. Would anyone have an idea to help me out?

I'm grateful to your help!

P.S. I couldn't get my paypal account working. As soon as I got it done, I'll make a donation.

juggledad Dec 12, 2009 11:34 AM

you just need to be specific in the css selectors by adding 'td#left' and 'td#right'. For example. if you put the 'Category' widget in teh LEFT and athe RIGHT sidebars, you could use something like this
HTML Code:

td#left .widget_categories {background: #red;}
td#right .widget_categories {background: #green; }


braids Dec 12, 2009 05:33 PM

Hi Juggledad,

Thank you so much! I'll try this out. Would this work for 3rd-party widgets as well?

Best Regards!

braids Dec 12, 2009 08:34 PM

Great, it worked on 3rd-party widgets as well. Thanks so much!

My papal account is awaiting bank account confirmation. It takes time. As soon as it's done, I'll make my donation.

Thanks again!


All times are GMT -6. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.