Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<Div.. overflow causing large space in IE

Status
Not open for further replies.

SnaveBelac

Programmer
Oct 21, 2003
89
GB
The following web page should look like all the other pages on the site: A 300px high window with a vertical scroll bar.

When the page is first loaded IE leaves a large gap between the menu header and the div element. If the browser window is resized, it snaps into place...?? It seems that the gap gets bigger the more info there is to scroll through in the table.

There is still quite a bit to do to this site but this little niggle is causing me mucho stress...

It works perfectly in Netscape.

Anyone come across this before?? Am I being daft?? Have I posted this in the correct forum?? Am I asking too many questions??

TIA

----------------------------
SnaveBelac - Adventurer
 
welcome to IE quirks-mode.

if you provide a uri for your DOCTYPE, it aligns properly but introduces another IE quirk: no scrollbars.

oh, how i hate IE :)


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Thanks Jeff

I giuess the next question is - Do you know of another way to achieve the same result preferably avoiding the use of frames or making the whole site Flash ?

I may have to suck it up and use frames but I would rather not...


----------------------------
SnaveBelac - Adventurer
 
Additionally I was thinking

"Would it be possible to delve into the subject of a custom DTD ??" - Is this a straightforward ot sensible thing to atempt and wou it acieve the desired result ?

----------------------------
SnaveBelac - Adventurer
 
how about an iframe instead of regular frames?


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
I see - might be time I investigated the world of iFrames then...here we go . . .

Thanks for your help

----------------------------
SnaveBelac - Adventurer
 
If it is not too late. I have found out that providing correct Doctype Declaration from the w3.org website causes IE6 to handle the page correctly. Replace your DOCTYPE with this and try it:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
Hope it is still some help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top