Jump to content

Archived

This topic is now archived and is closed to further replies.

heartburn

iframe question...

Recommended Posts

Is it possible to force a source file for an iframe to use your css?

As in, can I link an iframe to a sister-site and then use my own css to control the layout?

Share this post


Link to post
Share on other sites
I can think of a way using JavaScript to edit the tag in the page you are opening, but I don't know if that will actually work.  Using PHP I cant think of a way unless you are actually processing the whole page.

Share this post


Link to post
Share on other sites
well, I thought am wondering if there was a way to basically load the source page into memory and then basically re-write it back into the iframe?  Does that make sense?

I know that before this post it wasn't really a php question, more of a js one, but I frequent this forum and figured that someone might have run into this before as well.

Share this post


Link to post
Share on other sites
I think it can be done, but you're out of my realm of experience here.  Couldn't you just keep a copy locally with the alternate stylesheet on it?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.