I am trying to style the snapwidget instagram feed, I want to make the border white. This is not a setting of the widget so I tried adding css. It seems that my css is not being detected since the content is in an iframe. Is there a way to force my css on the iframe content?
Asked
Active
Viewed 5,031 times
5
-
See this question http://stackoverflow.com/questions/217776/how-to-apply-css-to-iframe – Curtis Apr 02 '12 at 15:10
-
1you can only do that, if the iframe is from the same domain. – Christoph Apr 02 '12 at 15:15
-
Any updates on this question? I don't see any accepted answers.. – HCN Dec 22 '14 at 09:45
1 Answers
5
It won't work unless the iframe is on the same domain due to same origin policy. http://javascript.info/tutorial/same-origin-security-policy
Check out Using CSS to affect div style inside iframe for an explanation

Community
- 1
- 1

munnster79
- 578
- 3
- 16