SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast archive's Avatar
    Join Date
    Mar 2007
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <iframe> properties question

    Hello people!

    I have an html page that contains an iframe in one of it's columns. I'm struggling to change the font-family properties, but no success....
    At the moment the iframe loads an external html file for test purposes, but eventually it will hold dynamically generated files.

    I have already googled it, but most results refer to font change as impossible..(?) for an iframe..

    Any ideas?
    Thank you guys!

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll have to change the font in the document that you load in the iframe. Your page cannot change the appearance of the included document.

    The dynamically generated files you intend to include need to have a style sheet (internal or external) that specifies the font you want to use.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Enthusiast archive's Avatar
    Join Date
    Mar 2007
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks man, the problem is that the content is most probably going to be plain text files thus unable to be styled..

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,595
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by archive View Post
    Thanks man, the problem is that the content is most probably going to be plain text files thus unable to be styled..
    As you already know - you can't style plain text files. If you want to style them you'll need to convert them from plain text to HTML.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •