-
-
Save tomdavies/1148899 to your computer and use it in GitHub Desktop.
Content-first flexbox test
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flexbox test</title> | |
<style> | |
@media screen and (min-width: 30em) { | |
body { | |
width:100%; | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-box; | |
display: box; | |
-webkit-box-orient: vertical; | |
-moz-box-orient: vertical; | |
-ms-box-orient: vertical; | |
box-orient: vertical; | |
-webkit-box-direction: reverse; | |
-moz-box-direction: reverse; | |
-ms-box-direction: reverse; | |
box-direction: reverse; | |
} | |
[role="navigation"] ol { | |
width:100% | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-box; | |
display: box; | |
-webkit-box-orient: horizontal; | |
-moz-box-orient: horizontal; | |
-ms-box-orient: horizontal; | |
box-orient: horizontal; | |
-webkit-box-direction: normal; | |
-moz-box-direction: normal; | |
-ms-box-direction: normal; | |
box-direction: normal; | |
} | |
[role="navigation"] li { | |
-webkit-box-flex: 1; | |
-moz-box-flex: 1; | |
-ms-box-flex: 1; | |
box-flex: 1; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div role="main"> | |
<p>This is the main content.</p> | |
</div> | |
<nav role="navigation"> | |
<p>This is the navigation.</p> | |
<ol> | |
<li><a href="#">foo</a></li> | |
<li><a href="#">bar</a></li> | |
<li><a href="#">baz</a></li> | |
</ol> | |
</nav> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fiddling about trying to make this work properly in FF