I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe?
Html – How to apply CSS to iframe
csshtmliframerss
csshtmliframerss
I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe?
Best Answer
Edit: This does not work cross domain unless the appropriate CORS header is set.
There are two different things here: the style of the iframe block and the style of the page embedded in the iframe. You can set the style of the iframe block the usual way:
The style of the page embedded in the iframe must be either set by including it in the child page:
Or it can be loaded from the parent page with Javascript: