Link to home
Start Free TrialLog in
Avatar of hanganum
hanganum

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JuergenHartl
JuergenHartl

the correct syntax would be:

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