Neal Grosskopf Dot Com A NG Designs Site

Neal Grosskopf Dot Com Return To Neal Grosskopf's Home Page a NG Designs Site

Toolbar

  • Skip To
    • Menu
    • Content
  • Validate
    • HTML
    • CSS
    • WAI
  • Font Size
    • Small
    • Medium
    • Large
    • Extra Large
  • Account
    • Create Account
    • Login

Interact

Navigation

  • Home
  • Interact
    • Blog
    • Message Board
    • Open Links
    • Open Videos
    • Photo Gallery
    • Polls
    • Reviews
    • Geek Speak
  • Designs
    • View All Designs
    • Professional
    • Corporate
    • Templates
    • Personal
    • Club
    • NG Designs
    • Web Guides
  • Files
    • Artwork
    • Wallpapers
    • My File Downloads
  • Extras
    • Bookmarklets
    • The Magic 8-Ball
    • Career Builder RSS Feed Generator
    • Monster.com RSS Feed Generator

Always Show Scrollbars In Firefox Using CSS

  • Actions
    • View All
    • View Article Statistics
    • View User Statistics
    • Search
    • Subscribe to RSS Feed

Recent Articles:

  • Tracking Outgoing Links in Google Analytics Using Event Tracking and jQuery
  • Tracking Internal Website Campaigns With Google Analytics and PHP
  • Everything You Need to Know About jQuery's .data() Method
  • Google vs. China: How It Will Affect Web Workers
  • Don't Like The New Facebook Home Page? Fix It With 5 Lines of CSS
View All

Subscribe To Feed
loading Subscribers

I'm On Twitter loading

Apr 30

I remember the first time I used Firefox I was extremely annoyed by the fact that the browser does not always show the scrollbars (like Internet Explorer does). The problem with this is when a page's height is not greater than the available screen height and a users clicks a link to a page that is taller than the available screen height it shifts the entire content area over to accommodate for the scrollbars (which probably take up 15 pixels or so). This is most likely the standards compliant way to display a page and IE has been doing it wrong all along, regardless it is annoying seeing the web page jump back and forth in Firefox.

The Solution:

Fortunately there is a solution using CSS:

html { overflow-y: scroll; }

The Opposite

If the meaning of your life depends on not conforming to Microsoft (you're out there) you can also make IE behave like Firefox:

html { overflow-y: auto; }

Whatever method you prefer I would recommend placing this in your baseline stylesheet before starting a new web site or project. Your users will thank you.

Sources:

  • Controlling browser scrollbars

Tags: css, css3, firefox, page jump ( Add Tag )

Bookmark This Page:
  • Digg loading
  • Delicious loading
  • Re-Tweet loading
  • StumbleUpon loading
  • DZone loading
  • Snipplr
  • Script & Style

Replies:

  • M S
    M S
    #1

    Mon. May 19, 10:02:34 PM

    Thanks

  • Lee Nigga
    Lee Nigga
    #2

    Tue. July 8, 3:26:18 PM

    Hells yeah.

  • Frank V
    Frank V
    #3

    Tue. January 20, 10:27:51 AM

    Thanks man, i've broken my head on this for a week ><

  • Rob Colburn
    Rob Colburn
    #4

    Tue. April 14, 5:31:56 PM

    simple elegant solution. thanks much

  • Kyle Kazlof
    Kyle Kazlof
    #5

    Fri. August 13, 9:00:57 AM

    Neat Article, Cialis....


Reply:

B U I Link Font Color Edit Preview ?
Characters: 0 Textbox Size: [+] [-]
   

  • New Comment
    #6

    Thu. September 9, 6:04:32 AM

Font Size:

  • A
  • A
  • A
  • A

Search:

Places:

  • Blog
  • Message Board
  • Chat Room
  • Geek Speak
  • Open Videos
  • Reviews
  • Tag Cloud
 

Site Links

Site

  • About
  • Contact Me
  • Site Map
  • Site Search

Interact

  • Blog
  • Geek Speak
  • Message Board
  • Open Links
  • Open Videos
  • Photo Gallery
  • Polls
  • Reviews

Random Stuff

  • Hosting by FatCow
  • © Copyright 2005 - 2010
  • Modified: Thursday, August 05, 2010
  • Load Time: 0.05 Seconds

Site Coded And Designed By Neal Grosskopf Using No Crappy CMS Or Themes