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.
hanganumAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.