Trying to add CSS to a widget

derrickhand300
@derrickhand300
9 years ago
1,353 posts
I am trying to embed a POLL using site builder( finished) now I am trying to add css to the widget because I cant get "div id=" to work ( because of the way the poll embeds
so now i am trying to add the css to the widget but its not showing up
here is the css I am using
 #598 {
box-shadow: 0px 0px 10px 4px rgba(247, 15, 15, 0.59);
-moz-box-shadow: 0px 0px 10px 4px rgba(247, 15, 15, 0.59);
-webkit-box-shadow: 0px 0px 10px 4px rgba(247, 15, 15, 0.59); 
}
Can someone show me where I am going wrong?
Thanks!
updated by @derrickhand300: 12/22/16 11:55:59AM
brian
@brian
9 years ago
10,149 posts
How and where are you adding this CSS?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
9 years ago
1,353 posts
I am adding it in a custom.css file using FTP
brian
@brian
9 years ago
10,149 posts
derrickhand300:
I am adding it in a custom.css file using FTP

Are you including that custom.css file in your meta.tpl file?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,149 posts
Also:

#598

is NOT a valid ID - All ID's must start with a letter. Where are you getting that ID from?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Yes the css file is at the bottom of the include.php css files- its been working for a year
I got the 598 using google chrome>inspect element using the slate skin
<div id="widget_id-598" data-id="598" class="sb-widget-content">

updated by @derrickhand300: 03/11/16 01:55:52PM
brian
@brian
9 years ago
10,149 posts
so you want to change your CSS ID to:

#widget_id-598

any HTML attribute beginning with data- is an "internal" attribute that is used by the javascript functions - you don't want to reference that in CSS.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
9 years ago
1,353 posts
AWESOME! That worked perfect
BIG thank you Brian

Tags