Welcome to TalkGraphics.com
Results 1 to 8 of 8

Thread: iFrame Anomaly?

  1. #1
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    58

    Question 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
    Paul J
    "If it was easy ... everyone would be doing it!
    http://www.tactical-graphic-design.com

  2. #2

    Default Re: iFrame Anomaly?

    Wrap your iframe tag with a font tag.

    eg:

    <font face=arial size=1><iframe................................></iframe></font>

  3. #3
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    58

    Default 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
    Paul J
    "If it was easy ... everyone would be doing it!
    http://www.tactical-graphic-design.com

  4. #4

    Default 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>

  5. #5
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    58

    Default Re: iFrame Anomaly?

    Thanks again sledger ... I'll do that and knowing your advice it will solve the problem.

    Cheers
    Paul
    Paul J
    "If it was easy ... everyone would be doing it!
    http://www.tactical-graphic-design.com

  6. #6
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    58

    Default 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
    Paul J
    "If it was easy ... everyone would be doing it!
    http://www.tactical-graphic-design.com

  7. #7

    Default Re: iFrame Anomaly?

    Thanks Paul..

    I've attached an example file (which I think I posted before somewhere.)

    This shows it working as required
    Attached Files Attached Files

  8. #8
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    58

    Default Re: iFrame Anomaly?

    Haven't seen that one before! Thank you! Archiving it now!
    Paul J
    "If it was easy ... everyone would be doing it!
    http://www.tactical-graphic-design.com

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •