I'm trying to create a <div> within a <div> that sits like this 
Both containers should have a nice amount of height to them, for some reason when I put the <div> within the <div> it breaks the height and some of the other CSS properties so everything ends up looking squashed.
Is #masthead_topbar inheriting something from the parent <div> or do I need to change something else?
The Code:
#container { width: 951.8px ; height: 600 px ; background-color: #c2c2c2 ; border: solid 1px ; border-color: b8b8b8 ; margin: 0 auto ; display: flex ; align-items: center ; } #masthead_topbar { width: 929px ; min-height: 47.00 px ; max-height: 47.00 px ; background-color: #c2c2c2 ; border: solid 1px ; border-color: b8b8b8 ; margin-left: 10px ; margin-right: 10px; margin-top: 10px ; } <div id="container"> <!-- Start Masthead TopBar --> <div id="masthead_topbar"> <font>Test</font> <!-- End Masthead_TopBar --> </div> <!-- End Container DIV --> </div>
#containerhavedisplay: flex;? Sidenote:<font>has been deprecated since the end of WW II. If not longer.border-color: b8b8b8;probably should beborder-color: #b8b8b8;. And that should be assigned to the shorthand property the line above:border: 1px solid #b8b8b8;