Created
May 29, 2015 16:22
-
-
Save oskwazir/7637c286000b713cb8d2 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/xacawi
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
/* | |
* See http://davidwalsh.name/flexbox-dice | |
* for this flexbox tutorial. I just wrote some code | |
* to see for myself what was happening. | |
*/ | |
.first-face{ | |
background-color:#fff; | |
height:50px; | |
width:50px; | |
border:4px solid #fefefe; | |
border-radius:8px; | |
padding:10px; | |
border-style:outset; | |
/* | |
* flexbox stuff | |
*/ | |
display:flex; | |
justify-content:center; | |
align-items:center; | |
} | |
.pip{ | |
background-color:#333; | |
border:1px solid black; | |
border-radius:50%; | |
width:10px; | |
height:10px; | |
display:block; | |
} | |
body{ | |
background-color:#766; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="first-face"> | |
<span class="pip"></span> | |
</div> | |
<script id="jsbin-source-css" type="text/css">/* | |
* See http://davidwalsh.name/flexbox-dice | |
* for this flexbox tutorial. I just wrote some code | |
* to see for myself what was happening. | |
*/ | |
.first-face{ | |
background-color:#fff; | |
height:50px; | |
width:50px; | |
border:4px solid #fefefe; | |
border-radius:8px; | |
padding:10px; | |
border-style:outset; | |
/* | |
* flexbox stuff | |
*/ | |
display:flex; | |
justify-content:center; | |
align-items:center; | |
} | |
.pip{ | |
background-color:#333; | |
border:1px solid black; | |
border-radius:50%; | |
width:10px; | |
height:10px; | |
display:block; | |
} | |
body{ | |
background-color:#766; | |
}</script> | |
</body> | |
</html> |
This file contains 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
/* | |
* See http://davidwalsh.name/flexbox-dice | |
* for this flexbox tutorial. I just wrote some code | |
* to see for myself what was happening. | |
*/ | |
.first-face{ | |
background-color:#fff; | |
height:50px; | |
width:50px; | |
border:4px solid #fefefe; | |
border-radius:8px; | |
padding:10px; | |
border-style:outset; | |
/* | |
* flexbox stuff | |
*/ | |
display:flex; | |
justify-content:center; | |
align-items:center; | |
} | |
.pip{ | |
background-color:#333; | |
border:1px solid black; | |
border-radius:50%; | |
width:10px; | |
height:10px; | |
display:block; | |
} | |
body{ | |
background-color:#766; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment