I was am trying to have a div fill the whole screen. Now it works horizontally but not vertically, and when i put a height 100% in, it doesn’t work. There is nothing else on the website but a div or section with padding on the inside and a container inside that section with margins set. I have tried removing the margins and padding and that didn’t help. So how would i achieve getting a section to fill the height of the screen. Here is an example of what i want to have happen
This is a bit tricky but you could try changing the position to absolute, then height 100% is based on the container height which is the body and already inherently fills the height of the view-port.
However, if you have a menu section that is 80px in height above that, unless you give the section a “top” value, it will align below the 80px menu and have an 80px scroll at the bottom of the view-port (i.e. its 100% of view-port but pushed down 80px). If you give it a “top” value of 0px it will now cover up the menu but be 100% and the scroll bar should disappear.
My suggestion, if you want the top 80px menu to always be fixed like in your example url, rather than setting the lower section “top” value to 0, simply change the menu section to fixed positioning and give it a z-index 1 or higher. It will now float above your 100% section below it.
Keep in mind, any backgrounds and content will also be hidden under the top 80px menu which may be ok but if necessary you may have to offset the background position top by 80px and I think webflow only lets you use % for background positioning at the moment. As for the content you can always add 80+ px of padding from the top.
@pingram3541 Your trick is brilliant. But I believe he means exactly what is on that website he provided. Section with 100%/100% cover that can be scrolled down to another section (also 100%/100%. So far I don’t know how to do it. Soon…
I’ve checked a little bit… It goes something like this:
Well… your fullpage id’s have <div class="full-page" id="page-nav-page-1"> which stands for the id="page-nav-page-1". And you try to style id="page-1" instead of id="page-nav-page-1":
Hello @hhelderalves! Everything was already said in this topic. Read through the posts, check links from those posts and try to do the same in pure html first. Then try adding it to webflow Here you have all the code that is needed: Edit fiddle - JSFiddle - Code Playground
Then, give each section which makes up a page the class of Full Page then in the settings for that element in the panel on the right, give it a unique id of Page-1. Do this for each ‘page’, but of course changing the unique id to Page-2 and Page-3.*
Look at my site’s troubleshooting link to see exactly how this works but each section will not take up the full page on the preview, only at the published subdomain, http://bertie.webflow.com/. Therefore, the website only takes up a full page when the site has been published or exported.
Hope this helps,
Bertie
*Or, if you want to do this after the code has been exported, see Bartosz’s fiddle and use the html to make the sections take up the full page:
<div class="full-page" id="page-1">Page one goes here</div>
<div class="full-page" id="page-2">Page two goes here</div>
<div class="full-page" id="page-3">Page three goes here</div>
Handcoded works fine, I did know that. The step by step tips of Bertie were pretty self-explanatory, thanks a lot, but unfortunally didn’t work… I might be missing something or having any other problem…
I think I’ll have to change some of my ideas about the layout…
Hold on a sec. I think I got now… don’t know what went wrong the first time,done it from scratch and it seems to be working… at least I’ve got a first full page
I’ll get back to you (if you don´t mind) when problems come around again, I’m shure they will…