Help - Search - Members - Calendar
Full Version: iframe alignment problem - please help!
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
pjvincent2097
Hello. Hopefully someone can help me, as I'm starting to pull my hair out!

I'm using an iframe to integrate a blog into my website:

http://www.zones1to6.com/z_announcements.html

This aligns perfectly well in Internet Explorer 7, but not in Opera or Firefox. However, on the other pages of my site (where I have also used iframes, in exactly the same manner, just not containing a blog), alignment is fine across all browsers. Can anyone help resolve this? I guess it is a problem with my blog rather than the HTML code, but I'm really not sure.

All the best

Paul
Tom H.
Can you describe the alignment problem? I don't see any significant difference using different browsers.
pandy
Me neither. You may want to use a background color though. Not everyone sets their browser's background to white. wink.gif
pjvincent2097
Thanks for the heads-up re: the background colour.

The alignment problem, if you compare IE to Opera, for instance, is that the contents of the iframe is higher in Opera than IE (i.e. "Thursday, 26 June 2008" is not aligned with the top of the logo in Opera, but it is in IE).
pandy
Have you tried to use marginwidth and marginheight?
http://www.htmlhelp.com/reference/html40/special/iframe.html

BTW vspace isn't an attribute for iframe.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.