javascript - Creating a sticky bottom footer with internal wrapper which stretches from header to footer -
i have made main framework of webpage in html / css realise need sticky footer stuck @ bottom of screen position fixed , need internal segment webpage content goes called (wrapper) stretch bottom of header top of footer, when zoom out on web browser wight segment fits whole height of browser work on display height.
here js fiddle
if finds out how please write code in stack overflow reply jsfiddle test website , not using real thing.
i have tried setting wrapper
height:100vh;,
this fill screens height not allow when add content not extend fit content off screen.
thankyou !
didn't apply design use technique: see: modern sticky footers
i suggest use html5 markup tags, created semantics right instead of using classes header, nag, footer, etc...
edit. edited fiddle here: jsfiddle
just add:
html { position: relative; min-height: 100%; }
besides that, change body position absolute instead of fixed , add margin-body body element w(same height of footer).
Comments
Post a Comment