Skip to content
UFO Performance Marketing

Where intelligence is put to the test.

HomeServicesCase StudiesBlogAboutContact Us
Menu
HomeServicesCase StudiesBlogAboutContact Us
Design · Oct 16, 2014

Overflow: Auto problem / bug in IE

Overflow: Auto problem / bug in IE
JC
John Crenshaw
Oct 16, 2014

Another quick bug fix for you. Another little quirk about Internet Explorer is the way in renders the overflow property. I've found two problems with this. First is that without a specified width, IE treats the overflow property, no matter how it's set, as overflow: visible; Second, even after we've solved that problem, IE tends to cut off the bottom portion of the element if there is a scroll bar, as if it wasn't taking the height of the scroll bar into account in its rendering, so let's dive into these real quick.

First of all, if a width is not specified for the given element, IE will treat it like overflow: visible; causing the element to continue outside of where you want it, like this:

Internet Explorer Overflow Bug
IE Overflow Bug

In order to fix this you need to create a stylesheet just for IE (That's explained in the last half of this article if you don't know how to do that). Once you've done that, add the following styles to the IE-only stylesheet, where ".element" is the class of the element you're working with:[

1
.element { overflow-y: auto; overflow-x: visible; width: 450px; }

‍

IE understands overflow-y and overflow-x, and the width is whatever width you want the element to be and it must be set to prevent this problem. In my case, I wanted the element to be as wide as the containing element, which was 450px.

Once you do this, you'll notice this problem:

Internet Explorer Overflow Bug Scrollbar Issue

Ok, IE, you've really outdone yourself on stupidity this time. It looks like IE is not taking the scroll bar into account in the height of the element. So, now we need to fix that by adding padding-bottom: 20px; to the IE-only stylesheet, and here's what we get:

1
.element { overflow-y: auto; overflow-x: visible; width: 450px; padding-bottom: 20px; }
Internet Explorer Overflow Bug Fixed

Voila! Problem solved. Keep in mind, this isn't a perfect solution...the problem with this is that IE will add that 20px padding at the bottom of the element even if there isn't a scroll bar, leaving you with some extra space on the bottom of your element in this case. One day soon, hopefully all browsers will render pages in the same way; until then, solutions like these will have to work.

Design

Get the latest from UFO

Keep reading

More from the blog

All Posts →
Design

Boost Conversions with conversion focused website design

Discover practical tactics for conversion focused website design to boost UX, copy, and analytics, turning visits into customers.

Susan Jorgensen · Dec 16, 2025
Most companies are thinking about web design all wrong
Design

Most companies are thinking about web design all wrong

Let's say you're having a website redesigned. What are the main things you're focused on? Here's why the process should be reversed.

John Crenshaw · Feb 4, 2020
44 Questions to Ask Before Hiring a Web Design Company
Design

44 Questions to Ask Before Hiring a Web Design Company

To help you with your interviewing preparations, here are 45 questions to ask before hiring a web design company.

John Crenshaw · May 2, 2017

Want results like these?

Let's talk about where you are, where you want to go, and the smartest way to get there.

Contact Us
UFO

Where intelligence is put to the test.

  • Home
  • Services
  • Case Studies
  • About
  • Partners
  • Testimonials
  • Projects
  • Blog
  • Careers
  • Contact Us

Offices

  • Cincinnati, OH
  • Columbus, OH
  • Portland, OR
  • (513) 549-7355
Contact Us
Google 5.0 five star rating Google Ads Premier Partner 2026
© Copyright 2026 UFO Marketing. All rights reserved. Privacy Policy | Terms of Use