Last active
August 29, 2015 13:57
-
-
Save shoya140/9411706 to your computer and use it in GitHub Desktop.
footer以下の背景色をfooterと同じにする
This file contains hidden or 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
| body{ | |
| padding: 0; | |
| height: 100%; | |
| width: 100%; | |
| background-color: #333333; | |
| } | |
| .content{ | |
| background-color: #f8f8f8; | |
| padding: 40px 20px; | |
| } | |
| .footer{ | |
| background-color: #333333; | |
| padding: 20px; | |
| color: #ffffff; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bodyを無限に広げて背景色をfooterと同じにする. その上にcontentをのせる.