0

What is the best way to make sections of a site fit the window height?

25th Jan 2017, 5:48 AM
Kevin Anderson
Kevin Anderson  - avatar
2 Antworten
+ 6
body { margin: 0; // To remove 5 px gap(used on old pc) height: 100vh; } % - relative to parent element vh - percents, relative to screen(window) size vh - for absolute height vw - for absolute width all is absolute, relative to wondow size
25th Jan 2017, 7:24 AM
WittyBit
WittyBit - avatar
+ 4
body {height: 100vh; margin: 0}
25th Jan 2017, 6:56 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar