Last active
September 23, 2016 09:20
-
-
Save tyaslab/7fa51ba5d31d457d4698bcc92171d543 to your computer and use it in GitHub Desktop.
Tested Old and New Flex
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
.wrapper { | |
/* old syntax */ | |
display: -webkit-box; | |
-webkit-box-align: center; | |
/* new syntax */ | |
display: -webkit-flex; | |
display: flex; | |
align-items: center; | |
height: 200px; | |
background-color: green; | |
max-width: 100%; | |
width: 100%; | |
} | |
.item1 { | |
/* old syntax */ | |
-webkit-box-flex: 1; | |
/* new syntax */ | |
-webkit-flex: 1; | |
flex: 1; | |
background-color: orange; | |
height: 50px; | |
} | |
.item2 { | |
/* old syntax */ | |
-webkit-box-flex: 1; | |
/* new syntax */ | |
-webkit-flex: 1; | |
flex: 1; | |
height: 25px; | |
background-color: red; | |
} |
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
<html> | |
<head> | |
<title>Testing</title> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> | |
<h1>Flexbox Colums test for Android < 4.4</h1> | |
<h2>Column with internal span's set to flex</h2> | |
<div class="wrapper"> | |
<div class="item1">item</div> | |
<div class="item2">item</div> | |
</div> | |
</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
display: box; or inline-box; | |
-moz-box-align | |
-moz-box-direction | |
-moz-box-ordinal-group | |
-moz-box-orient | |
-moz-box-pack | |
-moz-box-sizing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment