0

Align Object Css

My div #text not stay align in the center when my function js is activated. This code is referent a learn about js but i cannot align this div#text when he appear https://code.sololearn.com/W6QCw0vtMu3a/?ref=app

31st Oct 2020, 2:03 PM
Bruno Gomes
Bruno Gomes - avatar
1 ответ
+ 2
add position: absolute to #text and it works fine I guess
31st Oct 2020, 2:12 PM
Abhay
Abhay - avatar