0

What's wrong with my program?

Why div isn't at the center of page, and why there is no text inside div? https://code.sololearn.com/WnOnv9Nj5NvM/?ref=app

29th Aug 2021, 11:35 AM
Adilx01
2 Réponses
+ 2
Adilx01 it should be novi.innerHTML not novi.style.innerhtml
29th Aug 2021, 11:41 AM
Pariket Thakur
Pariket Thakur - avatar
+ 1
To center div you need to subtract 150 and 50 instead of adding it.
29th Aug 2021, 11:56 AM
Abhay
Abhay - avatar