Ok, so this is a simple css question, but I can't seem to find a straight answer on the web to save my life. I've got this set up:
<div id="app">
<div id="header_div"></div>
<div id="menu_div"></div>
<div id="content_div"></div>
</div>
and then some css:
@mixin relPos {
position: relative;
margin-top: 5px;
width: 100%;
}
/*** App level ***/
#app {
position: absolute;
word-wrap: break-word;
height: 100%;
width: 100%;
}
/*** Landing Page ***/
#header_div {
@include blackBorder;
@include relPos;
left: 0;
height: 30%;
}
#menu_div {
@include blackBorder;
@include relPos;
height: 10%;
}
#content_div {
@include blackBorder;
@include relPos;
height: 56%;
overflow: scroll;
}
but the dang divs are not responding to the percentage height style element... any ideas?
For context, I'm building a React.js site so I'm actually using scss files for my styling elements after rending them with React elements. Pretty sure that doesn't matter but just because I don't actually know everything, I'll mention that here. :) Thanks in advance for any help!
- Jon