Reputation: 4607
I'm trying to align a property in css with :
display: flex;
justify-content: center;
align-items: center;
body has height :100%
, and the described element is the first nested element in body, why it isn't receiving 100% height ?
Upvotes: 0
Views: 44
Reputation: 1426
Kindly add height: 100%;
to the id root
as you are working with react.
#root {
height: 100%;
}
Upvotes: 1