li {overflow: auto} generates unnecessary horizontal scroll bar

When an li element is set to overflow: auto Firefox creates a horizontal scroll bar in most cases. Short entries not containing block level tags don't suffer from this problem.

The workaround is to wrap the content of a list item in a div and set the overflow on the div instead.

Test page Workaround is included
Reported by: Marc Pacheco.

Mozilla | Reported on 25 April 2005.

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Jaap Roes on 25 April 2005 | Permalink

I'm not seeing any scrollbars in the list using a recent firefox nightly, so I guess the bux will be fixed in firefox 1.1

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes