CSS Flex boxes not working fine with Chrome
I try to use flexbox CSS to implement a some stuff. I just want
compatibility in Chrome & Firefox. I do the job with success in FF but
doesn't work in Chrome. What I want, It's insert vertical boxes center,
recursively. You can have a look here : http://jsfiddle.net/GuDcM/
div.contenaireBlc {background:#FFF; border:1px solid #ddd;
width:250px; height:250px;margin:0 30px 0 0;}
.contenaireHori {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
-webkit-flex-direction: column;
-webkit-flex-wrap: nowrap;
background:#777;
height:100%;
width:100%;
}
.innerTop{
-webkit-flex: 1 1 50%;
flex: 1 1 50%;
background: green;
width: 100%;
}
.traversHori{
flex: 0 0 20px;
-webkit-flex: 0 0 20px;
background: blue;
width: 100%;
}
.innerBottom{
-webkit-flex: 1 1 50%;
flex: 1 1 50%;
background: red;
width: 100%;
}
In chrome, the second red & green box have height = 0px, in place to take
left space (50% each).
Thanks for helping. Anthony
No comments:
Post a Comment