Skip to content

Instantly share code, notes, and snippets.

@jblanche
Created March 16, 2015 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jblanche/8394f42dc84d29425069 to your computer and use it in GitHub Desktop.
Save jblanche/8394f42dc84d29425069 to your computer and use it in GitHub Desktop.
Untitled
div {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 300px;
background: blue;
color: white;
}
h1 {
flex: 0 0 auto;
background: yellow;
color: black;
}
<!-- content to be placed inside <body>…</body> -->
<div>
<span id="before">
<h1>test</h1>
<span id="after">
</div>
// alert('Hello world!');
{"view":"split","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