Poll - Hide vote count using custom HTML | Community
Skip to main content
October 13, 2014
Solved

Poll - Hide vote count using custom HTML

  • October 13, 2014
  • 3 replies
  • 1289 views
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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
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. 

 

3 replies

Accepted solution
November 14, 2014
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. 

 
November 17, 2014

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.

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

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