Table or span with fixed width and overflow auto won't display scrollbars in Mozilla

Posted on 2004-10-26
Last Modified: 2008-03-06

Here is the code:
<table width="50px">
         <span style="overflow:auto;width=50px;height=100%;">

This works fine in IE, but Mozilla doesn't want to stretch the table and put horizontal scrollbar.
Question by:hanganum
    LVL 53

    Accepted Solution

    Use a div and not a span, and get rid of the height 100%

    LVL 2

    Expert Comment

    the correct syntax would be:

    <div style="overflow: scroll; height: 100%; width: 50px;">

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
    #Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
    How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now