Skip to content

Instantly share code, notes, and snippets.

@gcyrillus
Forked from anonymous/dabblet.css
Created April 29, 2013 11:01
Show Gist options
  • Save gcyrillus/5480963 to your computer and use it in GitHub Desktop.
Save gcyrillus/5480963 to your computer and use it in GitHub Desktop.
position:fixed + margin:auto;
/* position:fixed + margin:auto; */
html {
background: #f06;
background:repeating-linear-gradient(45deg, #acf 0,transparent 14px),repeating-linear-gradient(-45deg, #acf 0,#159 14px);
height: 100%;
background-attachment : fixed;
}
body {width: 70%;min-width: 700px;min-height:200%;margin:auto;box-shadow:0 0 5px;
background:repeating-linear-gradient(0deg, white 0,#eee 1em)}
.fixed {position:fixed;left:0;right:0;top:75%;width:100%;z-index:-1;}
.fixed p {width:70%;min-width:700px;margin:auto;position:relative;}
.fixed p a {position:absolute;
left:100%;width:2em;line-height:2em;text-align:center;background:linear-gradient(135deg, #777 0 ,#eee 1.5em );border-radius:0 1em 1em 0;box-shadow: 2px 0 2px black;
<div class="fixed"><p><a href="#">top</a></p></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment