[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 785
  • Last Modified:

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

Hi,

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

This works fine in IE, but Mozilla doesn't want to stretch the table and put horizontal scrollbar.
0
hanganum
Asked:
hanganum
1 Solution
 
COBOLdinosaurCommented:
Use a div and not a span, and get rid of the height 100%

Cd&
0
 
JuergenHartlCommented:
the correct syntax would be:

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now