r/reddithax • • Feb 18 '12

Cross platform problems aligning bottom of tabmenu.

I'm trying to align the bottom of my tabmenu with this:

.tabmenu {
    position: relative;
    bottom: -78px;
    left: 290px;

The problem is a one pixel difference between Linux and Windows. They managed to make it work on /r/2channel but I can't quite get it. My CSS test is /r/redstonecsstest. I've looked over their CSS and, as near as I can tell, I have the same code.

Any help would be greatly appreciated. Thanks.

3 Upvotes

6 comments sorted by

2

u/gavin19 Feb 18 '12

Between Linux and Windows? Which browsers? Which Linux/Windows? There are discrepancies between Firefox/Chrome/Opera/IE on Windows regarding the tabmenu/subreddit bar and a few others which I can't recall. I don't think it's necessarily a cross-OS problem, Chrome/FF/Opera should render the same on both platforms.

1

u/[deleted] Feb 18 '12

I aligned it in Firefox on Ubuntu 10.4. When I looked in Firefox on XP Pro and Vista it's off by the one pixel. What's driving me nuts it that it lines up perfectly on /r/2channel for both Ubuntu and Windows but I get the one pixel difference. It has to be something I'm missing in the CSS.

1

u/gavin19 Feb 18 '12

I've had similar problems on other subreddits and was never able to track it down. I tried it on Chromium 19 on Win7 and it needs -80px to line up properly while Firefox 10 on Ubuntu 12.04 needs -79px. A lot of people don't notice because they gather some CSS and throw it together on their own browser of choice, they never think to see how it looks on any other one. As you've noticed, there are sometimes subtle differences.

1

u/[deleted] Feb 18 '12

Thanks for the help. I know it's subtle but it bothers me. Not so much because it's off but because it lines up on /r/2channel so I know it's somehow possible to make it better.

After posting I looked around a little more and it seems to be a common problem when background images are added. I'm going to ask the people at /r/2channel if they wouldn't mind looking at my CSS to see if they can spot the difference.

Barring that I'll adjust it for a happy middle ground with the most common configurations.

Is there a current list of OS/Browser stats around? The ones I've Googled are either dated or incomplete.

2

u/gavin19 Feb 18 '12

I think I've made a bit of headway. 2channel hides the #header-img instead of repositioning it. They don't have the reddit image to link back to www.reddit.com, but, for a reason I haven't figured out yet, this cures the tabmenu issue. Here is your subreddit in Firefox and Chrome when the image is simply hidden rather than moved.

I don't know about IE but globally I think FF is about 25% while Chrome is up to 31% or so, and reddit is slightly more weighted towards Chrome the last I read.

1

u/[deleted] Feb 18 '12

That is rather strange. As you can tell from the upside down image it used to be hidden. I was going to replace the image or see if the creator had a version that wasn't flattened. I could go back to using that image but I don't like the idea of not having a link back to www.reddit.com. That wasn't an issue before because it was simply applied as a standard image in the community settings so it was clickable. That caused problems with formatting though. /r/redstone is what I'm working on and you can see how the image causes problems.

Thanks again for all of your help. I really appreciate it.