Click to See Complete Forum and Search --> : CSS Same as parent for iframe content


danpoulton
03-03-2007, 05:29 PM
I'm sure this has been covered before so I'm sorry for that.

I have an HTML page with an iframe and want the iframe contents to have the same .css applied to it as it's parent frame (the whole page) any ideas?:confused:

NogDog
03-03-2007, 06:46 PM
While you can style the IFrame however you want, the content of the IFrame is going to be styled in accordance with its own style definition. So unless you control the actual web page being referenced within the IFrame, the only other solution I can think of would be some sort of server-side coding (or possibly client-side, but that's not a strength of mine) to grab the desired page contents, strip out just the portion between the <body>...</body> tags, and then output that within a <div>...</div> section which would then emulate an IFrame.