possible to re-style a frame from external source?

Discussion in 'Web Design and Development' started by theprizefight, Mar 24, 2009.

  1. theprizefight macrumors member

    Joined:
    Oct 29, 2006
    #1
    I was wondering if it might be possible to apply my own stylesheet to a frame on one of my web sites that is from an external site.

    In other words, I framed in a page from another site, on my web page, but want to apply my own style sheet to that frame. Is this is any way possible?

    Thanks very much.
     
  2. thejadedmonkey macrumors 604

    thejadedmonkey

    Joined:
    May 28, 2005
    Location:
    Pa
    #2
    you'd have to use javascipt to inject the new CSS, but that's like an injection attack, and not possible (unless the javascript is being run on the same server, I believe). Since you have access to the source, the easiest thing to do would be to set a PHP variable that, if it's called, uses a different CSS file.
     

Share This Page