Reputation: 3953
Is it possible to change the background color of the vote button in below script ?
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/6352993.js"></script>
<noscript><a href="http://polldaddy.com/poll/6352993/">This is very long test question to test how polldaddy handles questions that exceed that normal length............ yes a very long question indeed..............</a></noscript>
The button is styled with class : 'pds-vote-button'
Here is a fiddle : http://jsfiddle.net/25LjE/8/
This is what ive tried but does'nt seem to have any effect :
.pds-vote-button {
background-color:blue !important;
}
Upvotes: 0
Views: 172
Reputation: 1685
Actually the button background is from an image... You need to change the image
This:
.pds-vote-button {
background:blue !important;
}
overides the image css attribute.
Upvotes: 0
Reputation: 146360
Yes. Yes it is possible to do that..
Works when I did:
.pds-vote-button {
background:blue !important;
}
Upvotes: 3
Reputation: 609
try to get the generated dom when the button is rendered, than apply your styles via javascript. You can also replace images this way.
Upvotes: 0