The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Full screen div minus X px’s Re: Full screen div minus X px’s


I’m a novice when it comes to JS/JQ but I have a couple of (ignorant) questions.

Why are we using WindowWidth? Isn’t the header automatically 100% wide?

What does the marginTop get us other than pushing the header down? Don’t we want the header to reach towards the bottom of the screen **except** for the **bottom** 66px?

Can we not use something like

‘height’:windowHeight – 66 (px), // or however that is supposed to go