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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.