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] Change background color of individual widgets (http://forum.bytesforall.com/showthread.php?t=15959)

bdups Nov 14, 2011 07:42 AM

[SOLVED] Change background color of individual widgets
 
I want to change the background color of each individual widget
I use to do this in "insert CSS":

#categoryposts-4 {
background: #99FFCC;
{
#text-6 {
background:#CCFFCC;
{
#categoryposts-5 {
background:#FFFFCC;
{


But only the first of the list has a background that changes color.
If I put text-6 (or categoryposts-5 and so on ..) at the top of the list, it changes color but not for others.
What grammatical error css did I?

Thanks


Ata 3.7.1
WP 3.2.1

lmilesw Nov 14, 2011 07:52 AM

The closing curly brace should be } not {
One way to remember this is to think of the CSS on one line. Here is what your code would look like on a single line (which also works BTW). The curly braces should be like parentheses with an opening an closing brace.
HTML Code:

#categoryposts-4  {background: #99FFCC;{
Here is the correct code on one line.
HTML Code:

#categoryposts-4  {background: #99FFCC;}

bdups Nov 14, 2011 08:23 AM

thanks very much. it's ok
i start Wp and sometimes I'm like a chicken in front of a knife !!!


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

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