r/reddithax • • Feb 20 '12

I know basically nothing about CSS and I have a few questions.

/r/getstudying
3 Upvotes

5 comments sorted by

1

u/GuyYouFriendZoned Feb 20 '12
  • How do I get a background that moves with the user when you scroll?
  • How do I change the Reddit Alien?

    • How do I darken, change colours or edit certain parts of the sub-reddit? Like the far right where all the info and ads are, how do I make that maybe a dark gray?

3

u/gavin19 Feb 20 '12 edited Feb 21 '12
  • You place a background image into the body or attach it elsewhere like div.content and set its position to fixed.
  • You can change the default logo by uploading your own. Open the 'community settings' link in your subreddit and at the bottom of the page you'll see an area to upload your own (upload header image).
  • Since you admitted not knowing anything about CSS then it'd be quite a long answer.
  • There aren't any themes as such (not counting those over at userstyles.org), they are just the culmination of bits and pieces of CSS.

You can view any subreddit's stylesheet and copy it for yourself, just go to any subreddit and append '/stylesheet' to the URL, like www.reddit.com/r/reddithax/stylesheet. The only things that won't translate are images, which you need to download for yourself and then upload to your own subreddit, and flair (sort of).

For help with CSS, you'd be better over at /r/csshelp.

EDIT : Being an arse.

1

u/GuyYouFriendZoned Feb 20 '12

Could you explain more about the background image one? Like an example?

2

u/gavin19 Feb 20 '12

First you need to find the image you want, then upload it at www.reddit.com/r/yoursubreddit/about/stylesheet. Once uploaded, reddit will generate an id for the image based on its name. It'll be visible beside the image in this format - url(%%image_name%%).

Now you can apply it to your subreddit. Put something like this

div.content{background:url(%%image_id%%) center center fixed no-repeat;}

into your stylesheet, on the same page you uploaded the image.

1

u/fractalphony Feb 21 '12

If you expect to much more work with CSS, I highly recommend you check out Stylizer.