Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give style to iframed page content using parent pages css?

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}
like image 745
Jitendra Vyas Avatar asked Oct 24 '25 16:10

Jitendra Vyas


1 Answers

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).

like image 103
Pekka Avatar answered Oct 26 '25 06:10

Pekka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!