2

I am opening a Fancybox iframe from within a page that has several stylesheets loaded.

The content in the iframe is from my own app, but it is not taking the stylesheets from the parent.

Is there a way of doing this without having to load the stylesheets all over again in the iframe page itself?

pepe
  • 9,799
  • 25
  • 110
  • 188
  • Similar Q/A here, try this: http://stackoverflow.com/questions/583753/using-css-to-affect-div-style-inside-iframe – AndrewGroat Aug 22 '11 at 02:06
  • Another similar question: http://stackoverflow.com/questions/4612374/iframe-inherit-from-parent. Make sure you read the comments on the accepted answer. – peterjmag Aug 22 '11 at 02:07
  • thanks guys very helpful - sorry for the dupe, i ended doing my search using `fancybox` instead of more generic terms :P – pepe Aug 22 '11 at 02:15

1 Answers1

0

Yes and no. If you load the content inline rather than in an iframe, the content will be in the parent and have its styles.

Otherwise... I don't think so.

Coomie
  • 4,832
  • 3
  • 32
  • 44