r/csshelp • • Apr 02 '12

Positioning of Tags

6 Upvotes

I just added some color coded tags to [my subreddit](/r/HITsWorthTurkingFor and I'm having trouble with their positioning in Firefox (but not in Chrome) when not running RES. From messing with Firebug, it seems as though the .title a { position: relative; rule is not being followed or otherwise overridden. I could be mistaken though. The same issue seems to occur on /r/AskElectronics from which I adapted the code.

Here's what I have in place:

/* Color Coded Tag formatting - adapted from r/AskElectronics */
.title a {
position: relative;
}
.title a:before {
display: none;
position: absolute;
border-radius: 20px;
border-color: black;
color: Gainsboro;
padding-left: 13px;
padding-right: 13px
}
.title a[href*="/us"] {
padding-left: 20px
}
.title a[href*="/ica"] {
padding-left: 20px
}
.title a[href*="/announcement"] {
padding-left: 20px;
position: relative
}
.title a[href*="/us"]:before {
display: block;
content: "US";
background-color: green
}
.title a[href*="/ica"]:before {
display: block;
background-color: red;
content: "ICA"
}
.title a[href*="/announcement"]:before {
content: "Announcement";
display: block;
background-color: orangered;
font-weight: bold;
}

Thank you in advance for any suggestions!


r/csshelp • • Mar 18 '12

Looking for someone to help with CSS for /r/AskACountry!

6 Upvotes

Hi,

I am a mod at /r/AskACountry. In 7 days, we've gained nearly 800 readers and I really want to personalise the subreddit so that it looks more attractive to new users.

I personally have some very (VERY) limited CSS knowledge and lack the necessary skills to make my subreddit look how I want it to. To this end, I'm looking for someone to make those changes for me!

I'm looking for someone who can prove their CSS skills and who preferably has some experience with editing CSS templates on Reddit.

In return for your help, you will receive one month of Reddit Gold and will be a moderator of /r/AskACountry so that you will be available to provide CSS help in the future.

If you're interested, please message the mods over at /r/AskACountry or PM me directly. Make sure you have some kind of proof of your CSS wizardry available!

Thanks for reading, and I hope to hear from you soon.


r/csshelp • • Mar 18 '12

Can I change the text of "MODERATORS" and "message the moderators"?

6 Upvotes

r/csshelp • • Mar 10 '12

Need help with adding multiple flairs

6 Upvotes

So at /r/CatsWithHats I've been tinkering with CSS and I can't seem to be able to add multiple flairs. Can someone help me?

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

.comment .arrow.down {
visibility: visible;
display: block
}

div.titlebox span.word {  
display: none  
}  
div.titlebox span.number:after {  
content: " cat addicts"  
}  

.flair:before{
display:inline-block;
width:28px;
height:25px;
}
.flair-kitty1:before{
content:'';
background:url(%%kitty1%%) 0 0 no-repeat;
}

and I'm trying to add this image labeled nyan http://i.imgur.com/UsHHP.png

Anyone care to help? It would be much appreciated.


r/csshelp • • Mar 08 '12

Total CSS newbie, looking for some help with getting started

6 Upvotes

Hey there! I'm a programmer with enough knowledge of HTML to get by, but I've run into a problem when attempting to start editing.

When I go to edit a stylesheet and click the "save" button (or preview button, really), I get a message telling me there are validation errors, no matter what edits I try to make. The error occurs even if I just copy the default and try to submit that, so I'm guessing there's something I need to do before I can get started. The exact error is:

[line 75] syntax error: "CSSValue: Unexpected char. [75:78: )]"
background:-webkit-gradient(linear, 0% 0%, 0% 100%, from( hsl(210, 54%, 89%)), to( hsl(210, 54%, 79%)));

I figure it's a common thing with a super easy solution and I just need to do one or two things before I can get started, but I honestly don't know how to proceed. Anyone willing to give me an easy-to-follow instruction on how to get around the error so I can get to mucking around in the stylesheet?


r/csshelp • • Jan 27 '12

I was wondering how to replace the standard "Submit a Link" button with my own image.

6 Upvotes

I've seen it done before, I just don't know how. Thanks in advance.

EDIT - Also, I have two images, I would like the button to change to the second image on hover. I sort of know how to do that, but I'm not sure if it is the same.


r/csshelp • • Jan 06 '12

How can I change the "readers" text next to the "subscribe" button?

6 Upvotes

I see it on countless subreddits ("xxx,xxx godless redditors," to give a crude example), but I don't know how to do it. Any help? Thanks.


r/csshelp • • Oct 25 '11

Anyone have the CSS stylesheet that circlejerk used to turn itself into the Ron Paul campaign page?

6 Upvotes

r/csshelp • • Oct 24 '11

I've asked this question many times before, and can't figure out how to do it myself. Can someone please give me a step-to-step process on how to put in flair for my subreddit?

6 Upvotes

r/csshelp • • Aug 11 '11

Webkit border radius problems

6 Upvotes

Has anyone else here noticed that, at least as of this moment, reddit isn't recognizing WebKit border radius descriptors? Or is this just a problem at my limited band of subreddits? Every time I've tried to save a change to a stylesheet in the last hour or so, I've received validation errors everywhere those radii are described. I made the mistake of bracketing/deactivating those lines at one subreddit and can't turn 'em back on (consider that a warning - those lines work if they were implemented before this recent issue, but won't work after being deactivated/reactivated on your sheets).


r/csshelp • • Jun 28 '11

Total noob question here. How do I put an image on the side?

6 Upvotes

I want to put an image on the side of my subreddit, muchh like /r/Fitness has. Can anyone helpme out?


r/csshelp • • Jun 24 '11

Is it absolutely impossible to change the blue background colour of OP's posts inside threads?

6 Upvotes

It looks like reddit's default css uses !important to set that value so it overrides the !important I do:

.author.submitter {
background-color: #660000 !important;
}

I'm quite certain this is the right element as it kind of flashes the correct color in the right place for a fraction of a second when refreshing a thread.

EDIT: I accidentally a word in the title, I mean the background colour behind the OPs name in the post header.


r/csshelp • • Mar 30 '11

Is it possible to use gradients in Reddit CSS?

6 Upvotes

Hi folks, I'm working on the CSS for the Pali language Reddit, and I'm am wondering if it's possible to use background gradients with images. I keep getting validation errors if I do stuff like this:

background: -moz-linear-gradient(right, rgba(255,255,255,0), rgba(255,255,255,1)), url(%%palm2%%);

...which seems like it works. Are vendor-specific prefixes like -moz-linear-gradient outlawed, or is there something else wrong with that line, or...

Thanks in advance...


r/csshelp • • Jul 21 '10

How to implement trollface commenting?

6 Upvotes

Is there a way that this can be done in any sub reddit? When I tried to do the trollface commenting in a sub reddit that I mod, only a blank comment came up.


r/csshelp • • Jun 11 '10

Is there a way to disable downvoting on an individual post?

6 Upvotes

Occasionally, I try to make mod announcements to let users over at /r/zombies know about changes I've made to the stylesheet. I'd like to make them undownvotingable so they don't get buried and everyone can see. Any ideas? Is this possible at all? Am I just a dreamer?


r/csshelp • • Apr 23 '10

Is there any way to set up a word-filter for the comments within a reddit?

6 Upvotes

Just something I had on my mind, wanted to know if it was possible.

I.e.: Changes specific words to other words. So whenever someone writes 'troll' is appears in their comment as 'gentlemen'.


r/csshelp • • Apr 20 '10

Spent all day with this one for Redditor of the Day...

6 Upvotes

I'm trying to have an icon next to a certain user's name but only in a certain post.

I've written from 1 line, to 50 and can't get all three to work simultaneously. The person with the icon will not be the submitter.

Here's the latest I've trimmed down:

.id-t3_REDDIT_ID a.author[href$="/USERNAME"]:after { padding-left:3px; content: url(%%crown%%); }

Reddit ID is the unique 5 digit submission URL and Username is the user that will be tagged. Adding .comment will neglect either that specific post, or just tag all the comments.

Any ideas?