Forum Moderators: open

Message Too Old, No Replies

XHTML 1.0 and iframe scrollbar problem

         

gleinz

2:53 am on Jun 20, 2004 (gmt 0)

10+ Year Member



Hey everyone...

Just a quick questions. I have an index page using an iframe, where all the sub pages are loaded. I recently decided to adhere to XHTML 1.0 Transitional, and when I did that, a horizontal scroll bar started shoing up in my iframe for no apparent reason. When the DOCTYPE is changed to HTML 4.0 Transitional, the horizontal scrollbar goes away. Anyone know if there are issues with XHTML and iframe? Or maybe something else is causing this problem? Thanks.

tedster

3:37 am on Jun 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There have a been a few other reports of something similar -- you are talking about IE, correct?

From the other reports, it seems to have something to do with the mark-up of the document that is inside the iframe, especially if it uses percentage widths in a table based layout.

Does any of that apply to your situation?

DrDoc

3:58 am on Jun 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting... Never heard about this "bug" before. Is it documented somewhere, tedster?

gleinz

5:34 am on Jun 20, 2004 (gmt 0)

10+ Year Member



I've read that there was a problem with IE 5.0, that somehow for absolute positioning with CSS would cause a +15px increase in the right margin... other than that I haven't heard anything else.

The pages that load into the iframe just have simple text in tables, and it doesn't matter what the width is set at, it'll always show a horizontal scroll if it needs to show a vertical one.

mattglet

4:57 pm on Jun 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I too just encountered this problem...

My doctype was for HTML Transitional, and I got the horizontal scroll bar. I was short on time, so I could only try a few things to resolve it. Nothing worked, except for completely removing the DOCTYPE reference.

Obviously, this cannot be a permanant fix. Does anyone have any more info?

-Matt