cssfacebookfacebook-iframe

Cant style Facebook share button as its in an iframe?


Is it possible to use CSS to style the facebook share button? The problem im having is that the javascript creates an iframe meaning normal CSS on the page doenst affect the styling of the iframe.

https://developers.facebook.com/docs/plugins/share-button/


Solution

  • According to the Facebook Do's and Don'ts, you are not allowed to

    Modify Facebook brand assets in any way, such as by changing the design or color

    So I guess that settles the matter.

    Should you really want to customize the content of an iframe, the question has already been asked multiple times: check out this answer, or that answer or even that one.