0

How to align the search input form and button in the center vertically and horizontally??

I've created the form using html but cannot align it in center. I've tried using css but i can't figure out how. Can someone help me. Please provide the code if possible. https://code.sololearn.com/WL7q1nOBuS4Z/?ref=app

30th Jan 2019, 4:21 PM
Eugene Lyngkhoi
Eugene Lyngkhoi - avatar
1 Odpowiedź
+ 1
//Thera are many ways but this is best for horizontal center form{ text-align:center ; /*Vertical align*/ padding-top:50%; }
30th Jan 2019, 6:14 PM
Sudarshan Rai
Sudarshan Rai - avatar