Skip to content

Instantly share code, notes, and snippets.

@MichaelArestad
Created January 9, 2013 23:08
Show Gist options
  • Select an option

  • Save MichaelArestad/4497859 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelArestad/4497859 to your computer and use it in GitHub Desktop.
This does not work.
/**
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;
}
<div class="parent-element">
<h1 class="element" contenteditable="true">This does not work at all.</div>
</div>
// alert('Hello world!');
{"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