开发者

Align facebook button to the right

开发者 https://www.devze.com 2023-04-13 01:41 出处:网络
I try to align the facebook button to the ri开发者_如何转开发ght. The code for the like button is:

I try to align the facebook button to the ri开发者_如何转开发ght. The code for the like button is:

<div id="SocialDiv">
    <div class="fb-like" data-href="http://PanoNest.com/" data-send="true" data-width="450" data-show-faces="true"></div>
</div>

As you see, I placed it inside a div called SocialDiv, and then I tried adding the css:

.SocialDiv{
  float:right;
  text-align:right;
}

but it doesn't work.


your referencing a class called socialDiv in your css, not an id, which you have set in our markup. try #socialDiv{}

although i'm not 100% sure that will work because i'm not sure of the outcome you are seeking

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号