Not able to override CSS within IFrame

Posted by Madhur Ahuja on Stack Overflow See other posts from Stack Overflow or by Madhur Ahuja
Published on 2012-03-31T05:16:08Z Indexed on 2012/03/31 5:29 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

I am using disqus comments for my jekyll blog with some CSS styles overriden in my stylesheet and used to work perfectly.

Recently, disqus has introduced a new UI for their comments system which has completely broken the font colors. Since my site has dark background, I am trying to apply styles based on new disqus HTML structure generated.

However, it seems that none of my styles get applied. It seems that is because disqus is loaded within iframe.

Any ideas how can I fix the font colors. Example of the post: http://www.madhur.co.in/blog/2012/03/27/codeplexmovegit.html

UPDATE

Based on this question How to apply CSS to iFrame? it seems that you cannot style a child IFrame cross domain.

I am wondering how it used to work earlier. Disqus even has documentation on it

http://docs.disqus.com/help/69/

© Stack Overflow or respective owner

Related posts about css

Related posts about web-development