|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Tables in iframes
I have an iframe with a table in it, but no matter how wide the table is the iframe has a horizontal scroll bar going just beyond the scope of the iframe(iframe+width of vertical scrollbar}, i dont know what else i could use to describe the situation, but this happened to me a few times before. Im using ie6. Thanx if u can help.
|
|
#2
|
|||
|
|||
|
RE: Tables in iframes
Quote:
you can post a link to the test page.. |
|
#3
|
|||
|
|||
|
RE: Tables in iframes
I finally cornered the problem(sry zombie, i didn't see ur post until i did it, thanx anyways though)
i turns out to have nothing to do with the tables, but instead the doctype def very condenced versions of the files: index.html: Code:
<iframe marginheight="0" marginwidth="0" height="366" width="627" src="main.html"></iframe> main.html: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <br><br><br><br><br><br><br> <br><br><br><br><br><br><br> <br><br><br><br><br><br><br> i tried it on Firefox, Netscape, and Opera and it works how i think it should, but im still curious why it does that in ie6, because if possible i still would like to have my html verified, thanx |
|
#4
|
|||
|
|||
|
RE: Tables in iframes
Did you ever get rid of the horizontal scrollbar in IE. I'm running into the same problem. As soon as I have enough vertical content to create a vertical scrollbar I get a horizontal one. Doesn't happen in Opera, Netscape, or Mozilla. I tried changing the doctype with no success.
|
|
#5
|
|||
|
|||
|
RE: Tables in iframes
Acctually yes:
All you need to do is change <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> it worked for me(i hope thats not what you meant by."I tried changing the doctype with no success. " cuz in that case i have no idea whats wrong) when ie sees a definiton site that the dtd points to, it makes sure every thing is correct, and if anything isn't "up to standards" (sometimes even when is), like a bordercolor in a table tag, etc, for some dumb microsoft reason it decides to add an ugly horizontal scroll bar. it will stil validate correctly without the address. |
|
#6
|
|||
|
|||
|
RE: Tables in iframes
Thank you very much. The first time I tried changing the doctype, I changed it to what you had in the previous post. I changed it this time and it worked fine.
It seemed to have an unintended side effect though. It blew all of the font formatting specified in my CSS. I'm not sure what I'm going to do now, but at least that friggin scroll bar is gone |
|
#7
|
|||
|
|||
|
RE: Tables in iframes
As an addendum to this, I just discovered another fix that will allow you to keep the doctype decleration in the document.
In the <IFRAME> tag there is a scrolling property. It has three settings, no, yes, and auto. No shuts off all scroll bars. Auto causes the problem we've been experiancing. Setting the stupid thing to yes fixes said problem in IE. In fact, with a little more experimentation I discovered that yes works like auto should, and auto works like yes should. This fix does NOT break Netscape 7 or Opera, so it's okay. Thanks fo your help! |
|
#8
|
|||
|
|||
|
RE: Tables in iframes
Ya, sure anytime :-D
but... thats strange though b/c css still works for me(its only really simple css, cuz that all i can do off the top of my head), i'm curious to know what ie didn't take------for when i finally convert to xhtml(lol) this is what i tried... index.html Code:
<iframe marginheight="0" marginwidth="0" height="366" width="627" src="main.html"></iframe> main.html Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<style>
span
{
color:green;
font-variant:small-caps;
font-size:20px;
position: absolute; left: 0px; top:0;
cursor:move;
}
</style>
sdfsdfdffs<br>sdadsaad
<span>H e l l o !</span>
<br><br><br><br><br><br><br>
<br><br><br><br><br><br><br>
<br><br><br><br><br><br><br>
i don't understand why the scroll bar thing works, but it does, lol. Im surprized that the 2nd biggest company in the world cannot offer a browser up to standards while freeware can, lol. acctually, opera seems to be the only browser that understands scrolling="yes" (and their scroll bars arnt soo ugly) |
|
#9
|
|||
|
|||
|
RE: Tables in iframes
Well, now that I go back and look at things again, the only thing that really got trashed was the font-size declerations. If I get time this weekend I will experiment with it a little more and post my results.
For reference I was using XHTML Transitional as my doctype. I agree with you one hundred percent on the whole microsoft standards thing. This whole problem was idiotic, but hey, to many people use IE not to support it. I'm just glad that the other browsers allowed for the IE bug. And your right, the scrollbars in opera aren't so bad |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Tables in iframes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|