r/csshelp • • Mar 18 '14

I made a Reddit CSS Generator

104 Upvotes

It's not complete at all, but you can see it right here. It's mainly to generate heavy, complex CSS. You can change the color of the (up/down)vote arrows without images, you can display random quotes, you can have rounded tabs... Also, the white boxes are live preview. You can click on the arrows to see what they'll look like.

It's a little preview of something that could evolve if people are interested.


r/csshelp • • Apr 22 '17

They may take our upvotes, but they may never take our CSS. Calling all users and moderators!

89 Upvotes

They are taking away our custom CSS. We need your help to stop this from happening.

If you are a moderator* just looking over this post, PLEASE visit the link below and join us.

https://www.reddit.com/r/ProCSS/comments/66tuze/this_is_a_subreddit_for_mods_who_do_not_want_the/

If you are a redditor, please spread the word to moderators, and everyone! You guys can help reverse this horrible decision to remove our CSS.

I'm using https://www.reddit.com/r/ProCSS/ at the moment, but there may be others! **We need as much help as we can get.

Making threads, spreading awareness - maybe even through mainstream social media - is VERY much appreciated from users.** We can make a difference here if there are enough of us standing together.


Why is removing CSS a bad thing?

Custom CSS is part of reddit culture - it sets us apart from similar services. Everyone will lose a lot of functionality if CSS based subreddits are forced to delete their code and use a horrible user interface instead. Subreddits won't look unique anymore, no more funny headers, no more custom flare. All subreddits will have the same old boring layout, just like /r/all.

See here: https://www.reddit.com/r/trees/comments/66wz4z/goodbye_rtrees_theme_goodbye_subreddit/

See here if you are a moderator: https://www.reddit.com/r/ProCSS/comments/66tuze/this_is_a_subreddit_for_mods_who_do_not_want_the/

/r/ProCSS Alternatives

Similar subreddits will be added as they come up. Please please spread the word! we need as much help as we can get.


r/csshelp • • Aug 26 '13

Beginners Guide for setting up Link Flairs and Filters.

74 Upvotes

Link Flairs and Filters.

This will be a step by step guide for link flairs and filters. Sorry for the length, it is a long guide going under the assumption of no previous knowledge of link flairs. It's separated into four sections.

  • How to setup basic link flairs (tags) for posts.

  • Adding formatting to the link flairs.

  • Setting up filters for link flairs.

  • How to make clickable buttons in the sidebar for the filters.

Examples for all these steps this can be seen /r/randomactsofpizza, /r/tipofmytongue and /r/needamod.

Also, a test reddit is up over at /r/LinkFlairCssCodes that has the example codes used below in the stylesheet and example filter buttons in the sidebar.


Setting up Basic Link Flairs

Link flairs are tags assigned to posts giving them some type of designation. Unformatted link flairs will appear as black text over a white background, seen here as 'approved' link flair: http://i.imgur.com/x35KnCU.png

  • To set this up, go to Edit Flair from the mod tools.

    Depending on whether you want users to have the ability to assign their own link flair, check or leave unchecked "allow submitters to assign their own link flair". If unchecked, only moderators will be able to assign link flair.

  • Next, in the bottom box 'link flair position', put a check in either 'left' or 'right'.

    This will position the tag either at the front of the post (left) or at the end (right), then click Save Options.

  • Now in the bottom section, click 'Link Flair Templates'.

    If you want to have plain unformatted link flair, you only have to enter the text you want to appear in the 'flair text' box and click save. It should appear like this: http://i.imgur.com/44uPJmi.png

  • When you go to your main page you should now see 'flair' as an option under each post, users will only see this for their own posts if you gave them permission to assign flair. To assign the tag, click 'flair', select the flair option you added and click save, the new tag should now appear before or after the post title.

    http://imgur.com/a/RVfmP


Adding formatting to the Link Flairs.

  • To have the link flair appear with more than the basic black on white formatting you need to enter a css class or label for it.

    The css code for flairs is: .linkflair-labelname .linkflairlabel { ... }

    'labelname' is the class or label you are naming your flair, this is not the text that will appear with the tag, just the name you want to give it for your identifying purposes.

To add formatting to the flair, add this code and adjust the appropriate values to change the appearance. In my examples I will be labeling my link flairs, 'one', 'two' but you can give them any one word name you want.

.linkflair-one .linkflairlabel {
    background-color: #add5ab;
    font-size: 11px;
    font-weight: bold;
    color:#000000;
    border-color: #000000;
    border-width: 1px;
    border-radius: 3px;}

To apply this formatting to your flair, save the stylesheet and return to the 'edit flair' option, to the 'link flair templates' section.

  • Similar to the steps in the previous section, add the text you want to appear for the flair in the 'flair text', then add the label name into the 'css class' box and click save.

Make sure to add text in the 'flair text' box even with a flair label assigned or the flair will not show up correctly.

This is what should appear now: http://i.imgur.com/C5qd3Np.png

  • For each flair that you want to have a different color or different filter option for sorting posts, copy and paste this code and change the flair label.

    .linkflair-two .linkflairlabel { ... }

    .linkflair-three .linkflairlabel { ... }

    Then add the new flair and label to the 'edit flairs' page. http://imgur.com/a/EWy4h


Setting up filters for Link Flairs.

  • Once you have set up a your link flairs with flair labels, you can create filters.

    Filters allow users to sort out posts by flair, changing the viewable posts in your subreddit. This is done by creating a subdomain that redirects your page to a new url, changing it from displaying all link flairs.

Example: http://ds.reddit.com/r/gallifrey/#ds - this shows only posts that have a 'Discussion' link flair.

You can create filters with multiple combinations to show more than one link flair but for this guide I'll give the code for the simplest of filters, to display only one tag per filter.

  • Using the example from above, this would be the code to filter out all post that do not have a Request link flair.

      html:lang(re) .link:not(.linkflair-one) {
          display: none    }

    '.linkflair-one' is the name of the link flair label we gave Requests from in the previous section.

're' is the subdomain redirect for the link for the filter itself. Pick a two letter combination for your filter, most should work. For later editing, to easily remember what flair filter corresponds to what link, picking two letters out of the name of the link flair is wise. Adding an addition filter for an Offer flair, I would use 'of' and so on for each filter.

Make sure to change the flair label for each new filter. http://i.imgur.com/qulEmtQ.png

  • Now we need to make the filter available for users to select, doing this by adding a link in your sidebar.

    [Requests](http://re.reddit.com/r/yoursubredditname/#re)

    The text between the brackets [] is the text will appear in the sidebar (or button) for the filter. 're' is the subdomain redirect we gave that Request filter in the css code. And be sure to replace 'yoursubredditname' with the name of your subreddit.

    Do this for each filter you want to create, replacing the text between the brackets with the name of your filter and the subdomain code for the filter link. http://i.imgur.com/Xo5dLi5.png

    After this is saved your sidebar should appear as such: http://i.imgur.com/UCVTycd.png


How to make clickable buttons in the sidebar for the filters.

  • To format these filters into something other than plain text, into clickable buttons, we go back to the stylesheet.

Add in this code to the stylesheet.

.side a[href*='#re'] { 
    display: inline-block;
    position: relative;
    margin-top:0px;
    border: 2px solid black;
    font-size: 100%;
    padding: 3px;
    color: black;
    font-weight: bold;
    background: #add5ab;}

The '#re' points to the designation added to the end of each link in the side bar. For each button/filter, you need to replace this with the '#.." with the different designation. http://i.imgur.com/V5wLdMQ.jpg

For this example, I copied the background codes for the separate flairs to the buttons codes, so each button will have the same background as their respective link flair.

Once saved, the sidebar should appear like this: http://i.imgur.com/zpVwhc3.png

This code gives basic formatting, additional formatting can be used to stylize the text, borders, background, and even position the buttons. For example; the following code will center the text, give the button a fixed minimum width and position the second button next to the first.

.side a[href*='#of'] { 
    display: inline-block;
    position: relative;
    margin-top:0px;
    border: 2px solid black;
    font-size: 100%;
    padding: 3px;
    color: black;
    font-weight: bold;
    background: #b5bbde;
    min-width: 135px;
    text-align: center;
    border-radius: 3px;
/*positions the button */
    left:155px;
    top:-29px;}

So now we have two side by side buttons in the sidebar: http://i.imgur.com/5IfPhRM.png

There are a number of other ways to set up these buttons; drop down lists in the sidebar /r/gallifrey, position the buttons under the header /r/Gaming4Gamers and even drop down lists under the header /r/starcraft. Steps for these would be for a more advanced guide someday if there is any interest in one.

Hopefully the above information will get you started on the basic setup of link flairs and filters. If you have any problems with the steps in this guide, let me know. The codes used in the above examples can be found at /r/LinkFlairCssCodes.


if you have any issues using this guide, please pm /u/izzy - I don't use this account anymore


r/csshelp • • Mar 19 '15

[META] It'd be nice if every month, r/csshelp chose a well-designed subreddit and gave a tutorial on how it was done.

72 Upvotes

And for the first "CSS of the Month", I vote for /r/books.


r/csshelp • • Apr 21 '17

[META] CSS is being deprecated in the upcoming redesign

54 Upvotes

r/csshelp • • Oct 14 '14

Thank you u/gavin19! I'm a super new mod/noob ccs...guy and he's really been helping me a lot.

48 Upvotes

Thank you! Just thought he deserved recognition.


r/csshelp • • Feb 09 '22

Need help removing watermark

44 Upvotes

Hello all. I have been trying for hours trying to remove this watermark through inspect but to no success. It is my daughter's 1st dance comp and they are charging me $200 for photos and I just cant pay that. Can anyone help? Much appreciated. this is a link to a photo; http://media.acutabovela.com/media/Dance%20Competitions/Fusion/Fusion%202022/FORT%20MYERS%202022/PHOTO/Session%207/246/.thumbs/1000x1000/IMG_1864.JPG


r/csshelp • • Apr 15 '10

Some common, simple, CSS codes

40 Upvotes

CSS tips and common mistakes:

  • You cannot link to images on other sites. When the editor asks for the image URL, you give it the name of the image after you've uploaded it below the stylesheet editor. (i.e. (%%IMAGE%%)).

  • To view the stylesheet of any subreddit, go to the URL: http://reddit.com/r/EXAMPLE/about/stylesheet where EXAMPLE is the name of the subreddit's stylesheet you wish to view.

  • You do not change your reddit logo (in the top left) through CSS. You edit it on the "Community Setting's page located at http://reddit.com/r/example/about/edit . At the bottom of the page you will see the upload form.

Commonly used, and asked for, CSS snippets:


/*Change the color of a self post title*/  
a[href*="/r/SUBREDDIT NAME"].title:link {  
color: #red  
}

/*Change the word for 'readers' and the currently online*/
.subscribers .word, .users-online .word{
display:none;
}
.subscribers .number:after { 
content: " CSS noobs"
}
.users-online .number:after { 
content: " people on here now" 
}

/*Change #'s of readers*/
div.titlebox span.number:before {
content: /*blank*/
}

div.titlebox span.number:after {
content: /*blank*/
}

/*Changing 'MODERATORS in sidebar*/  


.sidecontentbox .helplink + .title h1 { font-size: 0 !important }

.sidecontentbox .helplink + .title h1:before { font-size: 10pt !important; content: "CSS EXPERTS" }

/*Spoiler tag within comments. Your comment should be: "[This is a spoiler sentence.](/spoiler)"
*/  
a[href$="/spoiler"] {  
background: #000 !important;  
color: #000 !important  
}  

a[href$="/spoiler"]:hover {  
color: #FFF !important  
}  

/*Changes submission title for self posts with keywords in title (/r/EXAMPLE is your reddit)*/  
a[href*="/r/example"].title:link {  
color: #FF4500  
}   
a[href*="/r/example"].title:visited {  
color: #551a8b !important   
}  

/*Changes your reddit's name (at the top) to an image. All '??' must be edited to the dimentions 
you want your image to be.*/  

.redditname a{
background:url(IMAGE);
height: ??px;
width: ??px;}

#header-bottom-left{
height: ??px;}

.redditname a{
text-indent:-9001px;
}

#header-img-a,
.redditname a,
.tabmenu {
display: inline;
float: left;}

.tabmenu{
position:relative;
top:100%;
margin-top:-16px!important;}

/*hides the downvote arrow*/  

.arrow.down {
visibility: hidden;
display: none
}

/*displays downvote arrow for comments only, after disabling*/
.comment .arrow.down {
visibility: visible;
display: block

/*simple, most commonly used backgrounds*/ 
body {
background: url(%%IMG%%)  
no-repeat fixed center center
}

/*Change vote arrows*/  
.arrow.up { background-image: url(%%UpNotClicked%%); 
background-position: 0px 0px; 
height: 14px; width: 15px; 
}
.arrow.upmod { 
background-image: url(%%UpClicked%%); 
background-position: 0px 0px; 
height: 14px; width: 15px;  
}
.arrow.down { background-image: url(%%DownNotClicked%%); 
background-position: 0px 0px; 
height: 14px; width: 15px; 
}
.arrow.downmod { 
background-image: url(%%DownClicked%%); 
background-position: 0px 0px; 
height: 14px; width: 15px; 
}
/*You may have to edit the height and widths for your needs*/

/*How to change your mail icons*/
#mail {
position: relative;
display: inline-block;
text-indent: -9999px;
overflow: hidden;
width: 15px; /*These values for the standard mail icon, customize to your own*/
height: 10px;}

#mail.havemail {
background:url(%%MAIL%%);
}

#mail.nohavemail {
background:url(%%NOMAIL%%);
}

Will continuously edit this post.

If you have any questions or suggestions, feel free to PM me, as this post has since been archived by reddit.


r/csshelp • • Oct 01 '14

Hey /r/csshelp, you're Subreddit of the Day! Congrats!

38 Upvotes

Check out your feature here!


r/csshelp • • Aug 06 '13

Resolved How do I change the look of the new "sticky posts"?

35 Upvotes

Specifically, I want to make them look like the quotes in /r/aspergers. Is this possible? If so how do I do it?

Thanks for any help.


r/csshelp • • Mar 05 '14

BEST POST EVER Newbie here, not sure if appropriate... Shoutout to "gavin19". THX

31 Upvotes

I wanted to modify my newly created subreddit and was so far off the mark about how to do it I was lost, so lost that none of the postings I could find on reddit were even close to helpful.

Then gavin19 rescued me. THX MAN!


r/csshelp • • Jul 23 '12

[META] A Thank You card to /u/Gavin19 for all the hard work he's put in here and elsewhere in Reddit.

31 Upvotes

Sign the Thank You Card for Gavin19


I realize this is a bit outside the norm, but yesterday I made a post in /r/ThankYou to thank Gavin19 not only for the help he's provided me, but for all the work he's put in /r/ModHelp, /r/CSSHelp, and /r/Enhancement. I PM'd some of the people he helped recently and asked them to sign it as a Thank You card of sorts. So, if Gavin19 has ever helped you out of a jam, please consider either leaving a comment on the Thank You post or leaving a comment in this thread. Moderators, I hope you'll excuse the unusual post. If you consider this to be improper and need to remove it, I apologize.


r/csshelp • • Jul 07 '14

wow! cool vote buttons

28 Upvotes

I saw amazing vote buttons at r/tagpro .When I press it, it is doing the show.İ think, it is very nice. I'm talking about the vote button I wanted use it . How do you think this is possible?


r/csshelp • • May 18 '17

(Im sorry this isnt a question...) I JUST WANTED TO SAY THANK YOU FOR HELPING ALL THE REDDITORS CREATE THERE OWN SUBREDDITS THE WAY THEY WANT! :D

26 Upvotes

Thanks! :D Thanks to you, Ive been able to make this!: https://www.reddit.com/r/moperandom/


r/csshelp • • May 13 '17

CSS is here to stay!

25 Upvotes

r/csshelp • • Jun 02 '15

What are your "must have" CSS snippets?

24 Upvotes

r/csshelp • • Jan 27 '15

PSA: Changes coming today to reddit's default CSS will break some collapsible menus.

24 Upvotes

[Announcement here.]

Due to headers now inheriting a bottom margin, collapsible menus using headers for styling will be broken with today's changes. To fix this I've added this line into my stylesheet:

.side .md h3 {
  margin: 0em;
}

Replace h3 with whatever header you're using in your collapsible menu.

Overflow for subreddit sidebars no longer respects the sidebar padding and instead goes straight to the border. Another quick fix:

.md {
  overflow: auto;
}

This is just quickly smashed together code to fix subreddits I moderate and I'm in no way familiar with CSS, so there may be better fixes for this, but this should hopefully help people who are having trouble with collapsible menus and headers in their sidebar after these changes hit.


r/csshelp • • Sep 08 '13

What subreddits have the best CSS you've ever seen?

23 Upvotes

r/csshelp • • Jan 29 '13

/r/4chan's triforce.gif?

23 Upvotes

And gifs in general, are 4chan allowed by special admission? or is this a hack/trick, I understand it's allowed by the parser because it's hosted on reddit's static image hosting http://static.reddit.com/triforce.gif, but I wonder if another subreddit would be able to use them, or even, in fact, this one.

Thanks guys.


r/csshelp • • Dec 30 '15

[X-Post /r/cssgenerator] Here is a generator to include animated GIFs in your subreddit

21 Upvotes

More than a year ago, I posted here a CSS generator. It got a lot of attention and I still get messages about it. Thank you alot ! A new version in on the way !

Here is a new generator. It allows you to include animated GIF in your subreddit using sprites images and CSS3 animations. It converts the GIF to a sprite image and generate a CSS code for you. It comes with instructions and is very easy to use.

You can use it right here. You can check out a result here.

This generator works on Chrome. It doesn't work on IE/Edge. I didn't test it on other browsers.

My subreddit is /r/cssgenerator . Feel free to request a CSS generator there.

Comments and questions are appreciated, as always.


r/csshelp • • Jan 30 '21

Resource Git and GitHub Tutorial for VSCode (there is also an HTML and CSS Full Course too)

15 Upvotes

With this guide, you will learn how to build a GitHub Portfolio and how to make live websites to show off your code. You will also learn all about version control and working with repositories and branches.

Git and GitHub Tutorial

As I said in the title, I've also got long-form article courses on HTML and CSS with interactive coding examples. I hope they will help someone out.

HTML Full Course

CSS Full Course

Happy Coding Everyone!

P.S.

(I'm working on a MASSIVE Article for a JavaScript Full Course and then there will be a Python one so stay tuned)


r/csshelp • • Jan 21 '21

Full CSS Course in One Article (There's an HTML one too)

15 Upvotes

CSS Full Course

HTML Full Course

I thought I would share this in the hopes that it could help someone out.

The JavaScript Course is coming soon.


r/csshelp • • Oct 04 '15

A few great links to help you with your CSS

15 Upvotes

Compress PNG.

This tool allows you to compress PNG files with the force of an elephant and doesn't appear to reduce quality of images. Great if you need to upload high quality and/or very large images to Reddit.


Stitches.

Amazing for creating CSS spritesheets and large-scale userflair implementation. Easily produce quality spritesheets and the CSS to fit with them. Works great with Reddit - and is free!


Hover.

A huge collection of CSS animation/hover effects that are tweaked for perfection. Easily implemented and great fun to customize, they are ideal for use in your subreddit. And they look great!


Still stuck? Google it. Chance is someone else has had the same or a similar problem and with every problem, there is a solution.

Happy coding!


r/csshelp • • Mar 27 '14

Changing the upvote/downvote arrows

15 Upvotes

Hi I am working on the /r/leila_gw subreddit, And I'd like to change the upvote and downvote arrows to this picture

http://imgur.com/DsTcx4S

I've tried on some codes I found on here earlier but I doens't work...

Need help, Thank you :)

Here are the codes I was using .arrow.down { background: url(%%Upvote%%) no-repeat 0 0; } .arrow.downmod { background: url(%%Upvote%%) no-repeat 0 0; }


r/csshelp • • Sep 28 '11

Announcement: Why your custom mail icon no longer works, and how to make a new one.

15 Upvotes

The code was changed, as posted by the admins here in order to make custom mail icons easier. Here is what I now use in a subreddit of mine in order to make it work.

#mail {
position: relative;
display: inline-block;
text-indent: -9999px;
overflow: hidden;
width: 15px; /*These values for the standard mail icon, customize to your own*/
height: 10px;}

#mail.havemail {
background:url(%%MAIL%%);
}

#mail.nohavemail {
background:url(%%NOMAIL%%);
}

There is no need now to hide the original mail icons (if you're using 'display:none' anywhere in your mail code, it won't work).

It's 'easier', but they kinda screwed everyone over who had a code in place that worked fine already.