Posts: 19
Threads: 6
Joined: Apr 2018
Reputation:
0
Hi,
How can I apply a background color to a widget by custom css.
If I try
#widget-6 {
background-color: 2f2f2f;
}
It is not working.
Thanks,
Mischa
Posts: 4645
Threads: 24
Joined: Aug 2017
Reputation:
207
Hi
Try like this
Code:
#widget-6{
background-color: rgb(51, 51, 51)!important;
}
BR
------------------------------
Ctrl+F5
Posts: 7763
Threads: 42
Joined: Jun 2015
Reputation:
447
You are missing # before color hex value.
Posts: 19
Threads: 6
Joined: Apr 2018
Reputation:
0
Thanks Daniel,
That works, not sure why the hex value is not working (@admin the # was a typo in my post, it is/was present in my custom css)
I applied the same rule to my background and that did work.
Thanks,
Mischa