By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

Horizontal Scrollbar in IE7

How to solve the problem in IE7 with a Scrollbar due to absolute positioned italic text.

Edited: 2011-03-19 00:25

There is a problem with absolutely positioned italic text in Internet Explore 7. When positioning italic text absolutely, a horizontal scrollbar in IE7 appears, even when the page doesn't take up more then 100% width.

This bug in IE7 makes it possible to scroll a good chunk horizontally. Even when the page-content doesn't extend beyond the browser window horizontally, and theres not any overflow accruing.

The Solution

The problem is easily solved.

To solve the problem, we simply use the CSS overflow property, this will make the scrollbar disappear.

p {
  overflow: auto;