Skip to content

Instantly share code, notes, and snippets.

@ryndel
Last active December 21, 2015 17:09
Show Gist options
  • Save ryndel/6338658 to your computer and use it in GitHub Desktop.
Save ryndel/6338658 to your computer and use it in GitHub Desktop.
fixed footer
html,
body {
width: 100%;
overflow-x: hidden;
font-family: "open-sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 100%;
line-height: 160%;
color: #b3b3b1;
}
body {
overflow-y: scroll;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
a {
text-decoration: none;
color: #999;
}
a:hover {
color: #3366ff;
}
header.top {
background: rgba(255, 255, 255, 0.95);
height: 65px;
width: 100%;
padding: 0 20px 0 0;
margin: 0 auto;
}
header.top h1.home {
height: 65px;
width: 280px;
float: left;
}
header.top h1.home .logo {
height: 65px;
padding: 10px;
background-image: url(../img/logo.png);
background-repeat: no-repeat;
background-size: contain;
}
#main {
min-height: 100%;
width: 100%;
position: relative;
background-color: transparent;
min-width: 960px;
padding-top: 85px;
padding-bottom: 200px;
}
#main h2 {
text-align: center;
font-size: 30px;
line-height: 34px;
color: #999;
margin-bottom: 0px;
padding: 50px 0 20px 0;
font-weight: 300;
}
#main .content {
margin: 0 auto;
width: 100%;
background-color: #f9f9f9;
position: relative;
padding-bottom: 50px;
}
#main .content .page {
width: 960px;
margin: 0 auto;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
height: 200px;
background-color: #fff;
padding: 30px 20px 20px 20px;
border-top: 1px solid #eee;
clear: both;
z-index: -20;
}
footer i {
font-size: 2.5em;
padding: 0 20px;
}
@media screen and (max-width: 767px) {
html,
body {
width: 100%;
overflow-x: hidden;
}
#main h2 {
font-size: 20px;
line-height: 24px;
padding-bottom: 0px;
margin-bottom: 0;
}
}
@media screen and (max-width: 570px) {
header.top h1.home {
height: 65px;
width: 65px;
float: left;
}
header.top h1.home .logo {
height: 65px;
padding: 10px;
background-image: url(../img/logo.png);
background-repeat: no-repeat;
background-size: auto;
}
header.top .nav {
padding: 20px 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment