Styling the Facebook login button next to other login links

孤街醉人 提交于 2020-01-17 02:26:25

问题


I am trying to add the Facebook login button to my header, but for some reason it appears way left and to the bottom of other links :)

I am testing this out on this test page: http://www.comehike.com/test_fb_connect.php

I was trying to get the button to appear just left of the login link on top right of the page. How can I accomplish this?

Thanks!


回答1:


Why dont you put it all in the same div?

<div class="site_login">
  <div class="facebook" >
   <fb:login-button show-faces="false" perms="user_about_me,email,user_location" autologoutlink="true" width="200" max-rows="1"> 
</fb:login-button> 
   </div>
   <div class="mylogin">
      <a class="login_link" id="login" href="/auth/log_in.php">Log in</a> |
      <a href="/auth/create_profile.php">Sign up</a> |
      <a href="/auth/forgot_password.php">Forgot Password</a> 
   </div>
</div> 

now you can style using :

.facebook {
  ...
}

.mylogin {
  ...
}


来源:https://stackoverflow.com/questions/6948095/styling-the-facebook-login-button-next-to-other-login-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!