Flex children not taking up 100% height of parent
For some reason, the div with the class "vertical-divider" inside the
header__left
div isn't taking 100% of its parent's height even when specified. Here's the code. I've tried using flex: 1
but no luck. Would be great if someone could help me out
JSX:
CSS:
8 Replies
put your classnames in single backticks, it should fix the formatting
oh neat thanks man
have you tried giving the .header a fixed height?
that works if i make
header__container
100% height as well
could you possibly tell me why it doesn't work without a fixed heightactually, try this
instead of having nothing inside the vertical divider, add a paragraph or any element
nope that doesn't work
ohh
i didn't have any text in my paragraph element
Thanks a lot though think i'll just go with the fixed height solution