CSS fix for horizontal scrollbar July 13, 2005 4:43 PM Subscribe
I'd like to submit a bug-fix to MetaFilter default.css stylesheet. It fixes the Mozilla/Firefox page rendering (on Windows) so that it no longer generates an annoying horizontal scrollbar. After much tinkering, it appears to be fixed by the following small change to the stylesheet:
.tinydatetime {
font-size: 10px;
font-family: verdana, sans-serif;
font-weight: bold;
color: black;
padding-left:5px; < ------ change to b>margin-left:5px;
padding-right:5px; < ------ change to b>margin-rightt:5px;
}
It needs testing on non-Windows platforms however.>>
.tinydatetime {
font-size: 10px;
font-family: verdana, sans-serif;
font-weight: bold;
color: black;
}
It needs testing on non-Windows platforms however.>>
No more scrollbar in mac/firefox either.
That was a really weird CSS problem. It's only used in the header, for the smal date and time text, which is in a table. Thanks muchly for tracking it down.
posted by mathowie (staff) at 5:04 PM on July 13, 2005
That was a really weird CSS problem. It's only used in the header, for the smal date and time text, which is in a table. Thanks muchly for tracking it down.
posted by mathowie (staff) at 5:04 PM on July 13, 2005
It took me a while to track down this particular gremlin. It's been annoying me for ages, so I decided to fix it myself. I see you've fixed the stylesheet already, so my work here is done...
posted by smiffy at 5:45 PM on July 13, 2005
posted by smiffy at 5:45 PM on July 13, 2005
Genius.
I'm finding my basic knowledge of CSS to be rather annoying... I'm adding a little padding to the div and it extends the width of the whole derned thing. Ah well.
posted by Necker at 4:30 AM on July 14, 2005
I'm finding my basic knowledge of CSS to be rather annoying... I'm adding a little padding to the div and it extends the width of the whole derned thing. Ah well.
posted by Necker at 4:30 AM on July 14, 2005
OK crunchland, I messed up the bold tags and added an extra t, but at least I knew what I meant!
posted by smiffy at 10:18 AM on July 14, 2005
posted by smiffy at 10:18 AM on July 14, 2005
Thanks for taking the time to help with this, smiffy. It's a mighty spiffy thing to do.
posted by raedyn at 12:03 PM on July 14, 2005
posted by raedyn at 12:03 PM on July 14, 2005
You are not logged in, either login or create an account to post comments
posted by mathowie (staff) at 4:58 PM on July 13, 2005