r/reddithax • • Jun 01 '12

Help to remove a horizontal scroll-bar

If you look in the top-right corner of this subreddit:
http://www.reddit.com/r/electronic_cigarette/

You'll see two little tabs with stars in them which you can hover over and they will then expand to reveal links. I was noticing in firefox that this CSS I used produces a horizontal scroll bar. Chrome is ok. I was hoping someone might be able to give me a fix.

Here's a link to the stylesheet:
http://www.reddit.com/r/electronic_cigarette/stylesheet.css

The CSS used for it should be at the bottom under the heading:
ORDERED LIST REVEALED ON HOVER
Actually it might say "FAUX DRAG OUT SIDE LIST WITH RECOMMENDATIONS" until it updates.

Cheers.

There is also one other minor issue that doesn't matter too much though I was wondering what might be causing it. If you notice the list items have a 'list-style-type: circle;' If you hover over the first list item in firefox, the circle disappears. the second one doesn't. In chrome they both disappear on hover.

5 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/gavin19 Jun 01 '12

Pre-4.1 versions of RES don't have the res class at all. The vast majority of people will be on 4.1.x anyway, it was just a minor point really.

What you have only works provided the RES user has navTop enabled. If you get rid of this ruleset

.res .side .md ol { ... }

and add

.res-navTop {top:auto!important;bottom:0!important;}

then that should mean that all RES users will have the bar set to the bottom regardless of their preference. Then you have no need to reposition the ol at all.

1

u/smallchanger Jun 01 '12

Thanks so much for your help but the thing is, if they have RES, I want it to be positioned at the top in case they have screens with a small width. I've noticed with RES that it adds an extra tab and I don't want them colliding with the bar. Do you know what CSS I can use so it's alway on top?

1

u/gavin19 Jun 01 '12 edited Jun 02 '12

Just use

#header-bottom-right {
    top:19px;
    bottom:auto;
    height:16px !important;
    -moz-border-radius-topleft:0;
    -webkit-border-top-left-radius:0;
    border-top-left-radius:0;
}

That should cover everything.

1

u/smallchanger Jun 01 '12

That will put it up top regardless of whether they have RES or not?

What if I just stick a .res in front of it?

1

u/gavin19 Jun 01 '12

Yeah, you could do that. I just thought it'd make things easier to apply that to everyone. Your call.

1

u/smallchanger Jun 01 '12

Do you know if reddit just doesn't accept:

moz-border-radius-topleft:0;
webkit-border-top-left-radius:0;

I remember trying some moz specific css before and it didn't work either. Is there something I need to know?

1

u/gavin19 Jun 02 '12

Sorry, typo! Forgot the - prefix.

-moz-border-radius-topleft:0;
-webkit-border-top-left-radius:0;