david wrote:
> Bradley Wright wrote:
>> On 6 Mar 2007, at 16:08, david wrote:
>>> Any way that I can use CSS to make my styles apply to the contents? Or
>>> is there a convenient way using PHP to include his original file while
>>> stripping the <html><body></body></html> tags from it?
>> The PHP question is out of the scope of this list, but as to your  
>> other question:
>>
>> Iframes are sandboxed from the parent page, so any styles you use  
>> there will *not* propagate down to the contents of the iframe. Only  
>> CSS files included in the source of the iframe will be used for styling.
> 
> Thanks, that's what I was afraid of. I can't include my CSS files in the 
> iframe source, that might interfere with the source's use on the other site.

Reply to myself so the list has the info: I removed the abovementioned 
tags from the file and checked it inside an iframe. It still rendered 
just fine inside the iframe (albeit without my CSS formatting), so I 
modified the page to include the guy's original file (sans tags) in my 
index.php file. Then I emailed him to ask if he could leave out the html 
and body tags in the future.

-- 
David
[EMAIL PROTECTED]
authenticity, honesty, community
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to