Link to home
Create AccountLog in
Avatar of Anand Majmundar
Anand MajmundarFlag for India

asked on

Aligning Google Login Button to Center

User generated imageMy Google OAuth2 aligns to left as attached. How di I align it to Center?


My css:


<style type="text/css">

#google-signin-button{

  //your css here

               font-size:17px; 

                color:#D2691E; 

                text-align:center 

}


Button Code:


<div id="g_id_onload"

     data-client_id="MyClientid"

     data-context="signin"

     data-ux_mode="popup"

     data-login_uri="MyDataLoginUri"

     data-auto_select="true"

     data-itp_support="true">

</div>

<div class="g_id_signin" id="google-signin-button"

     data-type="standard"

     data-shape="rectangular"

     data-theme="outline"

     data-text="signin_with"

     data-size="large"

     data-logo_alignment="left">

</div>

ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Anand Majmundar

ASKER

Worked on direction you provided. Solved it. Thank you.