Fill the Height of the Remaining Space. There you go. Also, once you finish writing your layer of HTML, abstract the styles away into CSS classes. The same applies to max-width. We had 16 px multiplied by 2 in div and then multiplied by 1.2 in h2. You can put display: flex to div#main, align-self: stretch to div#navigation. IE11 does not play nicely with flexbox and heights. htmlbody height HTML body div How to insert spaces/tabs in text using HTML/CSS? The following code give an ability of setting minimum height to the scroll div and also make it having 100% height of its parent by just using flex. You could, of course, set more breakpoints if you need to. By clicking Accept, you consent to the use of ALL the cookies. With a Parent Element With a Static Height . How to implement single row select and delete using DataTables plugin ? Even in bare eye they are no close to being 50% wide. Awesome post, John. Lets see what it computed font size is now in pixels: 38.4px. 3.3, Dealing with hard questions during a software developer interview. Parent div to match tallest child div's height? How to create Perspective Text using HTML & CSS ? How can a