+ 7

I'm unable to center-align the Google and Facebook buttons. Can someone give some suggestions?

https://code.sololearn.com/W53c0eMJ1AAB/?ref=app

4th May 2019, 6:14 AM
Saptarshi Ghosh
Saptarshi Ghosh - avatar
9 Answers
+ 10
Set your margin to 0.5rem 4.5rem in CSS for button.googlebutton and button.fbbutton. The 4.5rem sets it away from the edge that is, 4.5rem from both left and right. While the 0.5rem for the top and bottom.
4th May 2019, 6:54 AM
RadaR
RadaR - avatar
+ 10
Saptarshi Ghosh Perhaps you can apply the Biraj code to just the google and facebook buttons because the create account and cancel buttons on the same line looks better.
4th May 2019, 7:15 AM
RadaR
RadaR - avatar
+ 5
4th May 2019, 7:15 AM
Saptarshi Ghosh
Saptarshi Ghosh - avatar
+ 5
Miracle Osoh I included the 'create account' button and the 'cancel' button in a div element now.😅
4th May 2019, 7:21 AM
Saptarshi Ghosh
Saptarshi Ghosh - avatar
+ 4
Biraj Thanks a lot. Taking div#form was center aligning the labels too, so I created a new div element including the buttons and included your part. It worked great!!😀😀
4th May 2019, 6:41 AM
Saptarshi Ghosh
Saptarshi Ghosh - avatar
+ 4
Biraj Will surely make it neat😅
4th May 2019, 6:44 AM
Saptarshi Ghosh
Saptarshi Ghosh - avatar
+ 3
Gosh you learnt all that through solo learnđŸ˜Č
4th May 2019, 9:50 AM
Benjamin Kiprop
Benjamin Kiprop - avatar
+ 1
Bro you can keep outline: none; and outline: 0; for you google and Facebook buttons.
4th May 2019, 3:21 PM
Dheeraj
Dheeraj - avatar
0
Ű­ÛŒŰ§ Ù‡Ù…ŰŻŰ±ŰŻ
4th May 2019, 7:03 PM
Raies Khan Popal
Raies Khan Popal - avatar