Skip to content

Instantly share code, notes, and snippets.

@zhuqling
Forked from anonymous/index.html
Created January 12, 2016 01:34
Show Gist options
  • Save zhuqling/d6ce540d30e075be7ee3 to your computer and use it in GitHub Desktop.
Save zhuqling/d6ce540d30e075be7ee3 to your computer and use it in GitHub Desktop.
Shadow footer // source http://jsbin.com/yohiqe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Shadow footer</title>
<style id="jsbin-css">
footer {
position: fixed;
bottom: 0;
left: 0;
background-color: #ecf0f1;
width: 100%;
text-align: center;
padding: 10px;
box-shadow:0 -30px 40px rgba(236, 240, 241, 1);
}
</style>
</head>
<body>
<div>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
<p>Hello world</p>
</div>
<footer>
foot copy
</footer>
<script id="jsbin-source-css" type="text/css">footer {
position: fixed;
bottom: 0;
left: 0;
background-color: #ecf0f1;
width: 100%;
text-align: center;
padding: 10px;
box-shadow:0 -30px 40px rgba(236, 240, 241, 1);
}</script>
</body>
</html>
footer {
position: fixed;
bottom: 0;
left: 0;
background-color: #ecf0f1;
width: 100%;
text-align: center;
padding: 10px;
box-shadow:0 -30px 40px rgba(236, 240, 241, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment