r/CSSTutorials • • Jul 19 '13

[Tutorial] Removing Downvotes/Upvotes

This ones a quickee

General code

 *your choice of the below items, separated, by commas*
     {
     display: none!important;
     }
CodeFunction

siteTable .midcol div.score | the score next to the upvote button

siteTable .arrow.down | downvote button on posts

siteTable .arrow.up | upvote button

.sidecontentbox .midcol div.score, .sidecontentbox .arrow.down | the downvotes number shown on the right side on posts .sidecontentbox .midcol div.score, .sidecontentbox .arrow.up | the number of upvotes shown on the right side on posts .sitetable.nestedlisting .arrow.down | downvotes on comments .sitetable.nestedlisting .arrow.up | upvotes on comments

So if you want to remove all downvotes it would be:

#siteTable .midcol div.score, #siteTable .arrow.down, .sidecontentbox .midcol div.score, .sidecontentbox .arrow.down, .sitetable.nestedlisting .arrow.down
    {
           display: none!important;
    }

And just comment downvotes:

.sitetable.nestedlisting .arrow.down 
    {
           display: none!important;
    }
10 Upvotes

2 comments sorted by

2

u/[deleted] Jul 19 '13

Slight correction: the downvote button on posts should be #siteTable instead of .siteTable. I was wondering why I couldn't get it to work.

2

u/[deleted] Jul 20 '13

Yes it should be, fixing that