Why is the div not taking 100% height?

Hi everyone, I have a question. Why isn’t the inner div taking up 100% of the parent’s height, even though I’ve set its height to 100%?
No description
No description
5 Replies
Ganesh
Ganesh3d ago
You haven't given us any code Impossible to tell what's going on Oh wait I see the screenshot is cropped It's still better if you share a codepen instead of hard to read screenshots
Kick808
Kick8083d ago
The amount of classes for structure on that page is crazy. I'm guessing it is tailwind? I didn't know you had to nest flex so many times.
MarkBoots
MarkBoots3d ago
I think the flex is doing it
StefanH
StefanH3d ago
yeah your usage of flex looks not right though honestly good question why that grid element isn't taking up the full height you don't have to. this is not tailwind's fault lol
Kick808
Kick8083d ago
yeah I'm not blaming tailwind. Just wondering if that is its class structure or not. Yeah I would have used a single wrapper when 2 containers and no sure why grid comes next as we have not content to tell why it comes next. I also found that empty block elements don't play nice in all browsers.

Did you find this page helpful?