SOLVED

Poll - Hide vote count using custom HTML

Go to solution
Anonymous
Not applicable

Poll - Hide vote count using custom HTML

Wondering if someone could show me what needs to go into the HTML block in a landing page to switch off the vote count (not the percentage) in a poll?
I tried the below (and a couple of variations!) but I couldn't get it to work...

<style type="text/css">
.cf_vote_count {display: none;}
</style>

Thanks in advance.
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Poll - Hide vote count using custom HTML

Try adding !important

<style type="text/css">
.cf_vote_count {display: none !important;}
</style>

This will try to overwrite any rule that is taking precende to yours. 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Re: Poll - Hide vote count using custom HTML

Try adding !important

<style type="text/css">
.cf_vote_count {display: none !important;}
</style>

This will try to overwrite any rule that is taking precende to yours. 

 
Anonymous
Not applicable

Re: Poll - Hide vote count using custom HTML

Thanks Fernando. That does work!
Unfortunately I can now see that ".cf_vote_count" encompasses the # of votes, the % of votes as well as the "progress bar" - so hiding it will hide all three elements - I just wanted to hide the number of votes.

Anonymous
Not applicable

Re: Poll - Hide vote count using custom HTML

You would need to find a better statement to target the element you want. maybe this link will help

http://css-tricks.com/almanac/selectors/n/nth-child/