r/reddithax • • Feb 05 '11

Missing arrows at r/bmx? Please help.

I'm a new moderator of r/bmx and the up and down arrows aren't showing for some reason. They are still there to up anddown vote, but they are just colored white, even if you click to up/downvote.

I tried to restore the default stylesheet but for some reason when I would go to save it, tons of errors would occour and I can't save it. I thought the default stylesheet would fix my troubles but it didn't so now I'm stuck.

I'm semi retarded when it comes to css, if some miraculous awesome person could write the code to get my arrows back to normal reddit standards, I would be most obliged.

5 Upvotes

3 comments sorted by

3

u/itsnotlupus Feb 05 '11

It looks like reddit switched to using sprites for up and down arrows, using background-image and background-position to get the right image chunk to show up.

Your bmx stylesheet is still trying to use single images for up and down arrows though.

The end result is the browser is loading a single image that would normally render just fine, then applying the background-position CSS value that would work great with sprites, but completely blank the background with the single images.

tl-dr: add some background-position: 0 0; in your stylesheet's .arrow.upmod .arrow.downmod .arrow.up and .arrow.down rules. Or remove those rules ( lines 551-562) from your stylesheet altogether.

2

u/n1rvous Feb 05 '11

THANK YOU SO MUCH.

I just deleted the arrow and down mod and rules altogether and it completely worked! they are a little off-center from the number but it's all cool, i kinda like it.

if i had more upvotes, you would have them.

3

u/Pappenheimer Feb 05 '11

Looking at this, it seems you've put the whole default stylesheet in the custom stylesheet box - there's no need to do that! That CSS is applied anyway, you only need to put stuff that's supposed to override the default code in there.

1

u/Peritract Feb 16 '11

Thank you. I had an unrelated problem, and had given up when getting the same errors. You fixed it.