-
iFrame Anomaly?
Disclaimer: I'm not a 'code guy' ... so don't throw anything if this seems like a simplistic question.
Situation: Placed an iFrame to contain an often updated content page. Created the content page in FrontPage. Tried creating the content page with DP6 and it worked fine ... except the type face.
All text on the DP6 content page is Arial 10pt, as is the body text on the website. However when the content page displays in the iFrame the type face changes to Times Roman 10pt.
Tried: adding font <style> information to the iFrame code in the placeholder ... no change. Tried adding a placeholder to set the font in HTML ... still nothing.
Any ideas??
Codeless in Vancouver
-
Re: iFrame Anomaly?
Wrap your iframe tag with a font tag.
eg:
<font face=arial size=1><iframe................................></iframe></font>
-
Re: iFrame Anomaly?
Worked great sledger ... thank you as always!
One more question if I may ... if I want the iFrame to be transparent what code changes are needed to the code that in the tweaks?
Tried something from microsoft [ allowTransparency="true" ] but still a white background. Background on the html page the iFrame needs to contain is set to transparent.
Thanks!!
Paul
-
Re: iFrame Anomaly?
That only works if the iframe source has a transparent background itself.
If the iframe source isn't something you are able to edit, then you can't make the background transparent.
If it is something you can edit, then add this to the head section:
<style type="text/css">
body {background-color: transparent;}
</style>
-
Re: iFrame Anomaly?
Thanks again sledger ... I'll do that and knowing your advice it will solve the problem.
Cheers
Paul
-
Re: iFrame Anomaly?
Yup ... worked like a charm, sleger!! Thank you! Might be a good thing to include in the next tweak set!
Cheers again
Paul
-
1 Attachment(s)
Re: iFrame Anomaly?
Thanks Paul..
I've attached an example file (which I think I posted before somewhere.)
This shows it working as required :)
-
Re: iFrame Anomaly?
Haven't seen that one before! Thank you! Archiving it now!