If anyone can tell me what's causing this, I will marry you!
I've got a scrolling DIV layer inside a table cell and - for some reason - when there is a lot of text inside the DIV, a strange gap appears between the top of the layer and the top of the cell. The gap gets bigger as the amount of text gets bigger.
Take a look at <!-- m --><a class="postlink" href="http://www.fijjit.com/divProblem.asp">http://www.fijjit.com/divProblem.asp</a><!-- m --> - I've set this up to demonstrate the problem.
The blue border is the table cell. The red border is the DIV.
It works fine in Netscape 6, but in IE 5.5, the gap is visible.
Any ideas?It's just a bug that IE 5 has, no fix that I know of I'm afraid, sux dunnit?
Why are you using CSS with nested tables? Drop the tables and go CSS all the way. Units for lengths/dimentions are always require in CSS except for when the value is 0. You have missed off a px on your height:400; in the div tag, there is no default unit.
Also, you should be using a proper DTD (<!-- m --><a class="postlink" href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">http://www.w3.org/QA/2002/04/valid-dtd-list.html</a><!-- m -->).
I've got a scrolling DIV layer inside a table cell and - for some reason - when there is a lot of text inside the DIV, a strange gap appears between the top of the layer and the top of the cell. The gap gets bigger as the amount of text gets bigger.
Take a look at <!-- m --><a class="postlink" href="http://www.fijjit.com/divProblem.asp">http://www.fijjit.com/divProblem.asp</a><!-- m --> - I've set this up to demonstrate the problem.
The blue border is the table cell. The red border is the DIV.
It works fine in Netscape 6, but in IE 5.5, the gap is visible.
Any ideas?It's just a bug that IE 5 has, no fix that I know of I'm afraid, sux dunnit?
Why are you using CSS with nested tables? Drop the tables and go CSS all the way. Units for lengths/dimentions are always require in CSS except for when the value is 0. You have missed off a px on your height:400; in the div tag, there is no default unit.
Also, you should be using a proper DTD (<!-- m --><a class="postlink" href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">http://www.w3.org/QA/2002/04/valid-dtd-list.html</a><!-- m -->).