Forum Moderators: open
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.
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?
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.
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