+ 2

Tag positioning

How can I make my main section of the website centred and not below the hidden elements after you have logged in and got past the loading screen? https://code.sololearn.com/Wpsa9ro0U6eK/?ref=app

17th May 2022, 9:27 PM
Liam
Liam - avatar
1 Resposta
+ 1
You need to use the CSS display property instead of visibility in your #loader, .invi, and .visi selectors. display: none; REMOVES its element and children from the page, while visibility: hidden; HIDES the element - its still taking up space. Read more here: https://stackoverflow.com/a/133064
18th May 2022, 2:55 AM
Moshe Schnitzler
Moshe Schnitzler - avatar