(Try grid) |
|||
Line 8: | Line 8: | ||
<style> | <style> | ||
− | html | + | html { |
height: 100%; | height: 100%; | ||
} | } | ||
body { | body { | ||
− | + | min-height: 100%; | |
− | + | display: grid; | |
− | + | grid-template-rows: 1fr auto; | |
− | + | ||
− | + | ||
} | } | ||
.footer { | .footer { | ||
− | + | grid-row-start: 2; | |
+ | grid-row-end: 3; | ||
} | } | ||
</style> | </style> |
Revision as of 12:21, 10 August 2018