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
| /** | |
| * The -Webkit-scrollbar challenge | |
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * Make the first div’s scrollbar like the second’s | |
| * without changing the styling of the div (i.e. you | |
| * can only change the ::-webkit-scrollbar-* rules | |
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * It doesn't matter if the second div doesn't look the same | |
| * after your changes, it's only there to show you how the |
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
| /** | |
| * Weird behavior when combining opacity & z-index: -1 | |
| */ | |
| div { | |
| position: relative; | |
| display: inline-block; | |
| vertical-align: middle; | |
| width: 200px; height: 200px; | |
| background: yellowgreen; |
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
| table { | |
| border: 1px solid red; | |
| height: 200px; | |
| width: 400px; | |
| } | |
| thead td { | |
| height: 10px; | |
| } | |
| tbody { |
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
| body { | |
| background: pink | |
| } | |
| .popup { | |
| position: relative; | |
| width: 200px; | |
| height: 150px; | |
| padding: 10px; | |
| background: #fff; |
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
| /** | |
| * Just for fun™: Flickr spinner in pure CSS | |
| * Now, with wider browser support! | |
| */ | |
| @keyframes move-right { | |
| to { right: 0; } | |
| } | |
| @keyframes move-padding { |
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
| .cont { | |
| width: 100%; | |
| overflow: hidden; | |
| position: relative; | |
| white-space: nowrap; | |
| } | |
| .p1, .p2 { | |
| padding: 20px; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| .image-container | |
| { | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| top: 0; | |
| bottom: 50%; | |
| background: lightyellow; | |
| overflow: hidden; | |
| text-align: center; |
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
| /** | |
| * Bordered Arrow | |
| */ | |
| body { | |
| min-height: 100%; | |
| font-size: 10px; | |
| //background: lime; | |
| } | |
| .arrow { |
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
| /** | |
| * Align | |
| */ | |
| flex { | |
| display: flex; | |
| align-items: baseline; | |
| } | |
| div { | |
| width: 5em; |
OlderNewer