views:

318

answers:

1

How to style iframed page's content using parent pages css ? I don't have access of iframed page?

i made thisfor example - http://jsbin.com/uxobe

how to style differently HTML of the page which i'm using in iframe?

Is therey a way to style like this through css or js+css ?

http://siteurl { background:red}
+1  A: 

If you have no kind of access to the IFrame, neither from server side nor through JS because of cross domain issues: Not at all, I'm afraid.

If you can get hold of it through JS, you could sneak in own stylesheets one way or another, either by directly accessing and changing the styles (clean) or writing a <style> tag (not w3c valid).

Pekka
i added example in question
metal-gear-solid
In that case, cross domain security applies and you have no chance of styling the content. YOu would have to proxy the content through your own server to get access to it.
Pekka
how can u please guide how can i proxy the content?
metal-gear-solid
Ooh, that's a really long story with dozens of pitfalls, is not possible or too hard in many cases, is generally rarely a good idea and I am going home now :) Why not open another question about it.
Pekka