Posted by Jon Slaughter on 04/25/07 08:57
"Andrey Tarasevich" <andreytarasevich@hotmail.com> wrote in message
news:oKudna3W8fH0lbLbnZ2dnUVZ_oernZ2d@comcast.com...
> Hello
>
> The following HTML code makes IE7 to display the horizontal scroll bar and
> permit a rather large amount of horizontal scrolling
>
> ====
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> <html>
> <body style="font-style: italic">
> <table style="width: 100%"><tr><td>
> <div style="float: left">Prev</div>
> <div style="position: relative; float: right">Next</div>
> </td></tr></table>
> </body>
> </html>
> ====
>
> see http://home.comcast.net/~andrey-t/test.html
>
> The interesting part is that this behavior critically depends on the font
> style being 'italic' (???) and the position of the right-floated 'div'
> being 'relative'. Changing to non-italic font style disables scrolling.
> Same with position. Can anyone please offer any suggestions as for why
> exactly the original version causes scrolling in IE?
>
> BTW, a version with 'div' instead of a 'table' produces essentially the
> same result
>
Its IE... did you expect more?
Navigation:
[Reply to this message]
|