Skip to content

Instantly share code, notes, and snippets.

@shoya140
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save shoya140/9411706 to your computer and use it in GitHub Desktop.

Select an option

Save shoya140/9411706 to your computer and use it in GitHub Desktop.
footer以下の背景色をfooterと同じにする
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;
}
@shoya140
Copy link
Author

shoya140 commented Mar 7, 2014

bodyを無限に広げて背景色をfooterと同じにする. その上にcontentをのせる.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment