I've never had this happen before and I can't understand why this is happening. I'm working in React. I basically have a parent component with its body's css:
body {
width: 100%;
height: 100%
}
That way I can work with percentages in my project. My child component has
#Navbar {
width: 100%;
height: 10%;
background-color: black;
}
But I cannot see the child component except if I set its position to absolute. Does anyone have any idea why this is happening? Thanks in advance for any help!