Treehouse: Grow your CSS skills. Land your dream job.

Change fontsize of the iframe body

  • # July 17, 2013 at 1:46 am

    I am having a iframe in an html page, The id is automatically being generated.

    How can i change the font-size of the iframe body.

    document.getElementsByTagName(‘iframe’), not accessing the iframe .

    # July 17, 2013 at 4:40 am

    Are you generating the content in the iframe or is it an external feed?

    # July 17, 2013 at 5:22 am

    we are generating the content in the iframe, but need to change the font size when clicked.

    # July 17, 2013 at 5:30 am

    Not sure you can do that as the CSS is actually in the **other** page but perhaps you can think of a way round it.

    My JS-fu is not great.

    # July 17, 2013 at 7:18 am

    Can’t believe you can actually do that o_O

    # July 17, 2013 at 7:25 am

    >Can’t believe you can actually do that o_O

    Not cross-domain AFAIK though.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.