View Full Version : IFrames
trundrumbalind
January 12th, 2005, 11:17 AM
Hi, I know I was able to get around this problem in the past but I can't remember how.
If you check out www.incognito.org.uk/newsite/index.html (http://www.incognito.org.uk/newsite/index.html) you'll see it uses an IFRAME for the content. Now, if you resize the window, the IFRAME alignment goes all weird. Refreshing the page fixes it, but obviously I don't want users to have to do that (or even for them to KNOW they have to do that!).
The problem doesn't happen with Firefox but IE seems to be having troubles with it. Any help would be great.
Kristopher
January 12th, 2005, 11:27 AM
Are you useing javascript?
trundrumbalind
January 12th, 2005, 11:56 AM
No, there's no javascript involved. Should there be?
Kristopher
January 12th, 2005, 11:59 AM
A friend of mine had this probelm once, but it was only when viewed in FireFox. He ended up using some sort of JavaScript concoction.
DDD
January 12th, 2005, 12:13 PM
weird I have never seen that and I have a page that uses Iframes. Lemme see what i did so mine does not do that.
trundrumbalind
January 12th, 2005, 05:17 PM
Hey so did anyone have any ideas about this? Kristopher had an idea about using Javascript but what would it be?
Sorry to bump up this post but I'm desperate and I've got a tight deadline.
bwh2
January 13th, 2005, 11:21 AM
take out the position:relative; in your iframe class.
trundrumbalind
January 13th, 2005, 12:17 PM
But that takes away the top and left positioning of the iframe which messes it up. I have tried taking out the CSS and just using transparent GIFs (shims) and it works fine but I kinda feel guilty about using a method like this!!! Fixing my CSS would be a lot nicer
bwh2
January 13th, 2005, 02:15 PM
.iframe {
margin-left: 17px;
top: 0px;
width: 430px;
height: 300px;
}
trundrumbalind
January 13th, 2005, 03:14 PM
What a guy! Nice work bwn2--much appreciated! I had to change top: 0px; to margin-top: 8px; to fix the top positioning but that's great mate, thanks!
bwh2
January 13th, 2005, 03:50 PM
no problem.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.