Forum Moderators: not2easy

Message Too Old, No Replies

CSS and Iframes

Can it be inherited?

         

madmatt69

7:38 pm on Sep 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey all,

I've got a stylesheet in both the parent and the iframe in a webpage.

I'd like the iframe to be able to just use the same stylesheet as the parent document, is this possible? It seems messy to have to call extra stylesheets otherwise.

So - is it possible to get the iframe to inherit the styles of the parent document?

swa66

10:57 pm on Oct 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The parent and the iframe both are independent html pages.
But both can load the same CSS file if you like them to do so.

If you do that, the CSS file should only be loaded once, but used twice.