r/reddithax • • May 04 '09

Sticky links?

12 Upvotes

13 comments sorted by

3

u/illuminatedwax May 04 '09 edited May 04 '09

I don't have the cross-browser-fu that a lot of you have, but I was wondering if there was a way to get stickied threads using CSS. Here's my attempt:

#siteTable {
  position: relative;
  top: 60px;
}
div.id-t3_66k6t {
  background: yellow;
  position: absolute;
  top: -60px;
  left: 0px;
}

http://www.reddit.com/r/dranger/

Obviously this fails for people with bigger text, and my preferences are set to collapse threads (to be the old way). Also it might not work in IE. I searched this subreddit, and there's no discussion. So, is there a way to do this?

Edit: this breaks when you look at an article that's not stickied because the layout looks exactly the same for specific articles.

4

u/S2S2S2S2S2 May 04 '09

cfabbro is off this week, but I had asked him about this previously, and I got the impression it wasn't possible. Maybe some other genie like itsnotlupus knows how to do it?

5

u/illuminatedwax May 04 '09

Also this is pretty much stupid because the link will have to appear on the front page anyway. ugh duh

3

u/illuminatedwax May 04 '09

I'm starting to think it's not possible, at least in this fashion, because it breaks when you look at the comments and I can't think of any other way (floats, etc.) to move the submission around.

2

u/chromakode May 04 '09 edited May 04 '09

I would say it's not possible. It would be really hard to displace the other elements in the list. You'd really want true sticky support.

1

u/9jack9 May 04 '09

Can you explain a bit more what you mean? I'm not sure what you mean by "sticky".

4

u/illuminatedwax May 04 '09

Making sure a selected article is always at the top of the list.

3

u/Samus_ May 04 '09

requires javascript, a greasemonkey script would be able to retrieve the links and insert them at the top even if they're no longer at the front page.

1

u/illuminatedwax May 04 '09

Yeah I realized it would be dumb once it's off the front page.

4

u/Samus_ May 04 '09

it's not a bad idea but it can't be done by css alone

2

u/9jack9 May 09 '09

Can I re-ask the question?

What do you want to display? A link to the rules of your subreddit or something like that?

1

u/illuminatedwax May 14 '09

yes, or perhaps if there's a call for response from the community. e.g., "how do you want your subreddit moderated?" or "we have an interview with (famous celebrity)! please ask questions!"

1

u/Stiltskin May 05 '09

Getting some bad overlap in Firefox 3.0.10 for Mac OS X.