any method of making a document always show vertical scrollbars? I've got a few pages that don't span the full height of the browser, thus in firefox there are no scrollbars causing the whole document to shift about 15 pixels to the right on said pages.i don't think that's possible or reasonable. but maybe, putting overflow: scroll in the body _may_ work...why wouldn't it be reasonable?Unusable Scrollbars may confuse viewers. That, and they'd be annoying. Note: Overflow: scroll adds a horizontal scroll as well...IE has unusable verticle scrollbars as a default, so most people are use to it. a page shifting 20px would be quite a bit more annoying imho.
I tried body{height:102%} but that only fooled IE, any idea for standards complian browsers?wait.. 20px? it shouldnt shift that much when the scrollbars change...scrollbars are about 35px, so its more like 16-17px, but its quite noticable.
EDIT:
Scratch that, just measured in photoshop and they're only 20px, but nonetheless, tehre is still a 10px shift to the right when they aren't their, which is quite obnoxiousAh, I see. It always seems I'm the one who gets taught things while trying to answer other peoples questions...
try giving html a scroll... see if that works...Originally posted by omega
try giving html a scroll... see if that works...
?? giving html a scroll?html {
overflow: scroll;
}
maybe it'll work. maybe it won't. won't hurt to try.tried that, it added scroll bars @ the bottom of the content.donno how to help you then. hopefully someone else will.You're probably using an XHTML doctype, right? Well, in HTML, the <body> was the "canvas", so to speak, as opposed to <html> now for XHTML. What I'm getting at, is try the height: 100%;, but apply it to either the <html> element alone, or both the <body> and <html>
<style type="text/css">
html, body {
height: 102%;
}
</style>high-five for Paul, exactly what i wantedOriginally posted by samij586
high-five for Paul, exactly what i wanted
*Rubs his hands together evily* Only 10 more high-fives, and I can rule the world! BUWAHAHAHAHAHAHAH!
Hehehe
Glad to help.You apply it to both; in either case it is an evil CSS hack, you get one demerit point.How is that an evil CSS hack? whats wrong with it?
personally the only thing i find evil is large amounts of images for navigation and layout. annoys the hell out of me.'Twas a relevant rant though. I loathe those sites.
so, um.. original poster, all set?Originally posted by samij586
high-five for Paul, exactly what i wantedah. ok. sorry.
I tried body{height:102%} but that only fooled IE, any idea for standards complian browsers?wait.. 20px? it shouldnt shift that much when the scrollbars change...scrollbars are about 35px, so its more like 16-17px, but its quite noticable.
EDIT:
Scratch that, just measured in photoshop and they're only 20px, but nonetheless, tehre is still a 10px shift to the right when they aren't their, which is quite obnoxiousAh, I see. It always seems I'm the one who gets taught things while trying to answer other peoples questions...
try giving html a scroll... see if that works...Originally posted by omega
try giving html a scroll... see if that works...
?? giving html a scroll?html {
overflow: scroll;
}
maybe it'll work. maybe it won't. won't hurt to try.tried that, it added scroll bars @ the bottom of the content.donno how to help you then. hopefully someone else will.You're probably using an XHTML doctype, right? Well, in HTML, the <body> was the "canvas", so to speak, as opposed to <html> now for XHTML. What I'm getting at, is try the height: 100%;, but apply it to either the <html> element alone, or both the <body> and <html>
<style type="text/css">
html, body {
height: 102%;
}
</style>high-five for Paul, exactly what i wantedOriginally posted by samij586
high-five for Paul, exactly what i wanted
*Rubs his hands together evily* Only 10 more high-fives, and I can rule the world! BUWAHAHAHAHAHAHAH!
Hehehe
Glad to help.You apply it to both; in either case it is an evil CSS hack, you get one demerit point.How is that an evil CSS hack? whats wrong with it?
personally the only thing i find evil is large amounts of images for navigation and layout. annoys the hell out of me.'Twas a relevant rant though. I loathe those sites.
so, um.. original poster, all set?Originally posted by samij586
high-five for Paul, exactly what i wantedah. ok. sorry.