Ahnaf Gibran
Ahnaf Gibran

Reputation: 78

Root height not taking full view height (React)

So here i'm trying to set the root to dynamically take the full view height, i already set the height and min-height in index.css but it's not working. But when i tried to set the height using px unit, it works. I don't know what is wrong, i appreciate anyone who help me to find the solution :)

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 1021

Answers (1)

A.Codera
A.Codera

Reputation: 29

Just pass height. You don't need min-height.

height: 100vh;

Upvotes: 1

Related Questions