Click to See Complete Forum and Search --> : scrollbar in IE


chedder
12-23-2005, 04:59 PM
the stuff:
the page (http://www.elemental-art.com/new/gallery.html)
the css (http://www.elemental-art.com/new/style.css)

I'm getting a horizontal scrollbar with the iframe in IE (the site looks like it should in Firefox). I can't give the iframe scrollbar="no" since I need the vertical scrollbar. I tried using overflow(both hidden & auto in different parts of the CSS) but that did nothing.

The content doesn't actually overflow...as you can see, it's all on the left side. I even put in a div for the pages that load in the iframe so that they were smaller than it (the .wide thing).

So, I'm stuck on how to get rid of the horizontal scrollbars...

_Aerospace_Eng_
12-23-2005, 05:03 PM
Hmm it might be the box model messing up. Try this, not for sure if it will work. Change this in the page being iframed
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
to this
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Mr Initial Man
12-23-2005, 06:35 PM
Changing the doctype will do nothing to change the box model.

_Aerospace_Eng_
12-23-2005, 07:05 PM
It puts IE in quirksmode. I've seen something before where a full doctype would cause a horizontal scrollbar in a frame when it didn't need it. The partial doctype made the uneeded scrollbar go away. I guess you could do
<style type="text/css">
html {
overflow-x:hidden;
}
</style>
in the head tags of the framed page. It seems to be some type of a bug (http://www.noscope.com/journal/2004/02/horizontal_scrollbar_bug). Perhaps changing to a strict doctype will fix the problem.

Mr Initial Man
12-23-2005, 07:19 PM
That I did not know. <irony type="heavy">Then again, IE is about as predictable as a girlfriend, and as easy to please.</irony>

I don't know if "Strict" will help. Probably hinder in other browsers, because iframes are not a part of the Strict spec.

ShrineDesigns
12-24-2005, 02:55 AM
http://www.htmlhelpcentral.com/messageboard/showthread.php?s=&threadid=11791

charrup1973
12-24-2005, 07:48 AM
I got the same problem. Shrine, I copied your code into the head section of the frame pages and the frameset and its still there?

ShrineDesigns
12-24-2005, 04:30 PM
post your code, please

chedder
12-27-2005, 10:29 PM
Oh, dude. Aerospace, I love you. I pasted that code for overflow-x into my stylesheet and it fixed everything right up. I knew I was doing something wrong. :p

Thank you.