r/csshelp • • Sep 05 '13

How did they do this?

/r/circlejerk

I mean... that layout... it's amazing. I'm not planning on taking their stylesheet, just out of curiosity how did they do that???

6 Upvotes

4 comments sorted by

1

u/gavin19 Sep 06 '13

Give the posts a fixed width/height and float them so they naturally stack in rows, move the thumbnail to the top of the post and blow it up a bit, hide pretty much all the other functions except the comments link. That's the basics.

A simple two-column layout like this only really takes a couple of lines of CSS. Imagine those columns a bit narrower, with the thumbnail at the top and all the save/hide/spam/etc links hidden. It wouldn't take much.

I'm not planning on taking their stylesheet, just out of curiosity how did they do that???

Easiest way is to 'borrow' it for and see for yourself.

1

u/[deleted] Sep 06 '13

woah. you can do that? dude. i wish i had a css guru like you modding my sub. it could be so much cooler than it is now.

1

u/SPIDEREDDITMANX9000 Sep 06 '13

Stylesheets are public now. You can find /r/circlejerk's stylesheet here.

1

u/[deleted] Sep 06 '13

I thought they were always public... But either way, I ask because I'm not smart enough to spot the part of code that does that particular function.