Created
January 9, 2013 23:08
-
-
Save MichaelArestad/4497859 to your computer and use it in GitHub Desktop.
This does not work.
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
| /** | |
| This does not work. | |
| */ | |
| html {background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%;} | |
| .element, | |
| .parent-element { | |
| width: 100%; | |
| } | |
| .parent-element { | |
| display: table; | |
| height: 300px; | |
| border: 2px dotted white; | |
| } | |
| .element { | |
| display: table-cell; | |
| vertical-align: middle; | |
| 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
| <div class="parent-element"> | |
| <h1 class="element" contenteditable="true">This does not work at all.</div> | |
| </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-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment