What's the best way to make an element of 100% minimum height across a wide range of browsers ? In particular if you have a layout with a header and footer of fixed height how do you make the middle content part fill 100% of the space in between with the footer fixed to the bottom ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
Probably the shortest solution (works only in modern browsers)
This small piece of CSS makes
"the middle content part fill 100% of the space in between with the footer fixed to the bottom"
:the only requirement is that you need to have a fixed height footer.
For example for this layout:
you need this CSS: