Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Forked from anonymous/dabblet.css
Last active August 29, 2015 14:16
Show Gist options
  • Save LeaVerou/386f13c4b241cbe4c68d to your computer and use it in GitHub Desktop.
Save LeaVerou/386f13c4b241cbe4c68d to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {
width: 100px;
height: 100px;
display: inline-block;
background: gray;
margin: 10px;
}
html {
display: flex;
align-content: center;
justify-content: center;
}
body {
max-width: 480px;
/*width: max-content;*/
background: #eee;
margin: 0;
display: flex;
flex-wrap: wrap;
align-self: center;
align-items: center;
}
html {
background: white;
}
@media (max-width: 480px) {
body {
xtext-align: center;
}
}
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><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