heartburn Posted July 18, 2006 Share Posted July 18, 2006 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? Link to comment https://forums.phpfreaks.com/topic/14971-iframe-question/ Share on other sites More sharing options...
ChaosXero Posted July 18, 2006 Share Posted July 18, 2006 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. Link to comment https://forums.phpfreaks.com/topic/14971-iframe-question/#findComment-60135 Share on other sites More sharing options...
heartburn Posted July 18, 2006 Author Share Posted July 18, 2006 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. Link to comment https://forums.phpfreaks.com/topic/14971-iframe-question/#findComment-60140 Share on other sites More sharing options...
ChaosXero Posted July 18, 2006 Share Posted July 18, 2006 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? Link to comment https://forums.phpfreaks.com/topic/14971-iframe-question/#findComment-60145 Share on other sites More sharing options...
heartburn Posted July 18, 2006 Author Share Posted July 18, 2006 hmmm... it's possible. Thanks for your ideas. Link to comment https://forums.phpfreaks.com/topic/14971-iframe-question/#findComment-60152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.