Created
November 5, 2020 09:44
-
-
Save Daniel-Walsh/c94816dc9fc2d4e071df74b3ccec0281 to your computer and use it in GitHub Desktop.
Use box-shadow to extend your footer when your content doesn't reach the window max-height #css #webdev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------- | |
| | 100px height | |
| HEADER | | |
|-----------------| | |
| | | |
| MAIN | 500px height | |
| | | |
|-----------------| | |
| | | |
| FOOTER | | |
| | | |
| | | |
| FOOTER | | |
------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
footer { | |
box-shadow: 0 50vh 0 50vh #000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment