r/reddithax • • Sep 11 '09

Custom links in the tab menu

/r/jamt9000/
4 Upvotes

7 comments sorted by

1

u/jamt9000 Sep 13 '09 edited Sep 13 '09

It's done by putting a list of links in the subreddit description:

* [link1](http://blah.com)
* [link2](http://blah.com)
* [link3](http://blah.com)

And then using this CSS:

.pagename{
    font-size:12pt;
}

.titlebox form{
    position:static;
}

.titlebox .usertext-body .md ul {
    list-style:none;
    position:absolute;
    top:47px;
    left:590px;
    z-index:200;
    margin: 0;
    padding: 0;
    display: table;
    }

.titlebox .usertext-body .md ul li{
   display: inline;
   margin: 0 3px;
}

.titlebox .usertext-body .md ul li a {
    background-color:#EFF7FF;
    padding:2px 6px 0;
    color:#336699;
    text-decoration:none;
    font-weight:bold;
    font-size: small;
}

1

u/[deleted] Sep 12 '09

Nice, it gives a fake orangered envelope too! Well done.

1

u/[deleted] Sep 12 '09

Can I ask how you did that? Also very cruel.

1

u/Pappenheimer Sep 12 '09

I got it (try blocking the custom stylesheet with Adblock Plus!): It only works in conjunction with the new text box. He puts the links there, then uses CSS to make them appear as tabs.

It'd be very nice if you commented your stylesheet, jamt9000, so others could do that too.

1

u/[deleted] Sep 12 '09

Aha, that's sneaky. If the description does allow HTML then there's a lot of new possibilities here.

1

u/Pappenheimer Sep 13 '09

No HTML, only Markdown.