…whereby, there is a fixed header and there are blocks below which fill the screen, currently, I am using flex and 100vh on the boxes below, however the top of the box sits behind the fixed header, rather than below it.
Just give the nav a position of “fixed”, change the orientation from left to “top” and add a z-index of 5 or 10 to it so that everything will scroll under it.
OR… post a read-only link and I’ll take a look if you can’t get it to work.
Thanks for the help, I did try the above but for the initial view, i.e. the first section, the content sits behind the header. What I am trying to do is load the boxes below the header initially, yet have the boxes and the header collectively fill the screen, hope that makes sense.
What I have done to highlight the issue is made the header semi transparent: Screen Shot 2016-12-04 at 2... ideally, I don’t want the blocks to sit behind the header.
So, there is a fixed header, all I need to try and do is have the initial section not sit behind the header, rather it sits below it, or, perhaps more accurately, the header and the first section equates to 100vh.
But then as you scroll it does so behind the header, got that bit easily enough in place, just that initial section.
Please create a read only link as described above. I cannot see or work through your site structure in the link you’ve provided. Please use the video below to see how the link is created and shared.
If this is what you want, go into your site structure, pick the “Updates Section” and put a top padding of about 104 or 105px on it and that gets this result.
The problem is that it will push the content down so that it doesn’t 100% fill the screen, so what I need is for the fixed header and the content below to equate to 100vh, does that make sense.
The solution above has the updates section now 104 too tall to fill the viewport, which is what you would expect.
You can’t see more than 100% of any device’s (Desktop, Tablet, Phone) viewport. Since you don’t want the content under the Nav, you’re going to have to find a compromise that allows your nav and content to share the space and add up to 100% (100vh) together.
I don’t want to see more than 100% of the device of course, I just wondered if it was possible to have a section that fills up the remainder of the space that the header took up.
I suppose I could make the header say 12vh then have the section below it 88vh…
Try creating a wrapper div and put your nav and updates section into that div.
Set the wrapper div as a flexbox display with 100vh height
Set a height for the nav (105px or so)
Set the top-margin for the updates section at that same 105px you used for the nav height.
This appears to work. The updates section with the nav fills the screen height without dropping any content below or overlapping. You can see in this image below. This my full screen. I scrolled down a few pixels to show that the update section ends and isn’t dropping below the screen height.