Forum Moderators: not2easy

Message Too Old, No Replies

div Scrollbar not working in IE

Works fine with the Fox

         

Powdork

7:02 pm on Aug 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a div which won't produce a scrollbar in IE, but it does in Firefox. Here is the code I am using.

<td height="120" width="748" valign="middle"><img align="left" src="images/small-logo.png" /><div style="width:630; overflow:auto"><table height="86" border="0" cellpadding="0">
<tr>

<td width="86" height="86" scope="col"><a onmouseover="MM_goToURL('photo','ImagesCommercial/new-1/i....

If you need to see the page, just let me know.

Thanks

Setek

2:42 am on Aug 9, 2006 (gmt 0)

10+ Year Member



Are you not getting a horizontal scrollbar, or not getting a vertical scrollbar, or neither?

<div style="width:630; overflow:auto">

You'll want to fix that first, in any event: it should be

width: 630px
, not just 630 (or
630em
, or whichever unit you're wanting.)

If you're wanting a vertical scrollbar but not getting it, it's possibly because your

div
doesn't have a fixed height - so it's just expanding with its contents.

If you're wanting a horizontal scrollbar but not getting it, I'd draw a border around your

div
, and a different coloured border around its content (the table inside?), and see whether in IE, it's just not that wide yet :)

scope
's only really meant to go on
th
(table headings) too :)

Powdork

5:56 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, that worked. I only wanted the horizontal scrollbar, and now I have it. the td's used to be th's, but I changed them thinking it might have been part of the issue.