-
-
Save gcyrillus/5480963 to your computer and use it in GitHub Desktop.
position:fixed + margin:auto;
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
/* 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; |
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
<div class="fixed"><p><a href="#">top</a></p></div> |
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
// alert('Hello world!'); |
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
{"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