17/08/07

Permalink 06:42:40 pm, by robertc Email , 86 words, 1079 views   English (UK)
Categories: Programming, Web Share on reddit Share on digg Share on del.icio.us Share on ma.gnolia.com Share on StumbleUpon

Hiding the Vertical Scrollbar in IE

Also related to my little signage project in the last post, one problem I encountered was the IE would insist on displaying a vertical scrollbar even though it wasn't required - and since I knew the exact pixel dimensions of the display I knew I didn't need one. It turns out there are many solutions to this on the internet, it's a common complaint when IE is rendering in standards compliant mode, and the solution is easy enough, just put:

html {
overflow: auto;
}

in your CSS file.

Technorati tags for this post:

Trackback address for this post:

http://www.boogdesign.com/b2evo/th1srv/trackback.php/208

Comments, Trackbacks, Pingbacks:

Comment from: Johnny [Visitor] Email
This way is obvious and is actually bad. If you have a style "width: 100%" on some block-level element inside your body it will grow off-screen (thus causing the horizontal scrollbar to appear!) when the vertical scrollbar appear (in the case of content growing vertically too much).
PermalinkPermalink 06/10/08 @ 12:49

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Hot Topics

Popular

boogdesign links

Links contains a big list of links, with a little bit of commentary

Search

Syndicate this blog XML

  • RSS 0.92 Posts RSS 0.92 Comments
  • RSS 1.0 Posts RSS 1.0 Comments
  • RSS 2.0 Posts RSS 2.0 Comments
  • Atom Posts Atom Comments
What is RSS?

License info

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 2.5 License.

powered by
b2evolution

get hCard