+ 1

How to center a div within a div

have a div "container" and another div "form". container size of page while form is custom size in center.

24th Oct 2017, 4:47 AM
Dick Tracy
Dick Tracy - avatar
7 Antworten
+ 4
I found this in Code Playground, hope it provides you an insight: https://code.sololearn.com/WewcrAlN1m8k/?ref=app Hth, cmiiw
24th Oct 2017, 5:25 AM
Ipang
+ 2
that's pretty neat!! but I m looking for something more like the Google page. but a login form instead. vertical centering is where I am having trouble
24th Oct 2017, 4:52 AM
Dick Tracy
Dick Tracy - avatar
+ 2
You could use flex box..
24th Oct 2017, 6:49 AM
Drax
Drax - avatar
24th Oct 2017, 5:44 AM
Calviղ
Calviղ - avatar
24th Oct 2017, 5:37 PM
Dick Tracy
Dick Tracy - avatar
0
Can I see your prototype code, please.
24th Oct 2017, 6:49 AM
Ukulele
0
Here my code on the go. Without examine your code, I don't how to provide a solution to your problem. https://code.sololearn.com/Wayj7S8uEd03/?ref=app
24th Oct 2017, 7:10 AM
Ukulele