Created
March 25, 2012 13:13
-
-
Save cballou/2193674 to your computer and use it in GitHub Desktop.
Overriding Facebook FBML Styling on a Canvas Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" media="screen" href="http://www.yoursite.com/css/canvas.css?v=1.2" /> | |
<div id="container"> | |
<!-- AS AN EXAMPLE, WE'LL STYLE THE FB SHARE BUTTON --> | |
<fb:share-button class="url" href="http://www.your-site-url.com" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#container .share_and_hide { font-size: 20px; } | |
#container .share_and_hide a.share { background-color: #fff; color: #000; } | |
#container .share_and_hide a.share:hover { background-color: #f0f0f0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="share_and_hide clearfix"> | |
<a href="/ajax/share_dialog.php?u=http://www.my-url-to-share.com&src=fbml&appid=2353941073" | |
rel="dialog" | |
title="Send this to friends or post it on your profile." | |
class="share share_a">Share</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment