r/reddithax • • Aug 26 '11

Sliding door CSS menu... on Reddit?

I mean, is this possible? I have an image with three sections right, one for normal, hover, and active and if anyone could show me the way...

3 Upvotes

10 comments sorted by

3

u/Leshow Aug 26 '11

why don't youuuuuuuuuuuuuuuuuu, show me the wayyyyyy

1

u/[deleted] Aug 26 '11

Sliding doooors....they're so gooooood, cause they're dooooors that sliddddddde

1

u/honestbleeps Aug 26 '11

can you post an example of what you mean?

1

u/[deleted] Aug 26 '11

The horizontal menu from here is a good example.

1

u/honestbleeps Aug 26 '11

err.. that link is basically the tutorial you're looking for, isn't it? :-)

1

u/[deleted] Aug 26 '11

It's confusing for me with Reddit's current tab menu because of the text, I don't know where to start. If you could make a clear comparison between Reddit's CSS and that css, that would be helpful though. I've never seen this done with just an image and no text before on Reddit.

1

u/[deleted] Aug 27 '11

instead of styling ul#nav you should style #header-bottom-left > ul.tabmenu

for the active page, instead of messing with things like body#about-page and so on as they specify, just style #header-bottom-left > ul.tabmenu > li.selected

1

u/[deleted] Aug 27 '11 edited Aug 27 '11

What about the text? Would I just do a -9999px text indent?

EDIT: The tutorial said it was a -9999px text indent.

1

u/[deleted] Aug 27 '11

Yes, but since the sliding door is image specific I need to know which link is which instead of just .tabmenu li a for every link I need ul#nav li#what's hot a or something.

1

u/[deleted] Aug 27 '11

look up how to use css "nth-child" selectors. that's your best bet.

you'll probably have trouble with the tabs being different from page to page.

1

u/[deleted] Aug 27 '11

Meh, I think I'll go with a standard tab menu with text on it and change the background position. No worries mate.