I am using the property display:flex
but having this structure:
<div class="cajaFlexible">
<div class="cajaHija"></div>
<div class="cajaHija"></div>
</div>
And with this css:
.cajaFlexible{display:flex;flex-direction:column;}
.cajaHija{flex:0 1 auto;}
.cajaHija{flex:0 1 auto;}
I can not get the daughter boxes to occupy 100% of the width of the div and I do not know why, I have tried several values (flex 0 1 100%, and some more that I do not remember) and I never have 100% of the div.
What property / value is missing me?
Sample Code:
<footer class="pie">
<section class="contenedor">
<article class="pie-flex">
<div class="pie-izquierda">
<figure class="logo-inferior">
<img src="<?php bloginfo('template_url');?>/imagenes/logo-gris.png"/>
</figure>
<div class="contacto">
<p>Aqui van datos de contacto</p>
</div>
</div>
<div class="pie-derecha">
<nav class="menu-inferior">
<p>dato de menu</p>
</nav>
</div>
</article>
</section>
</footer>
CSS for this structure:
.pie-flex {
height: auto;
min-height: 250px;
display: flex;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
justify-content: flex-start;
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
-o-justify-content: flex-start;
align-items: center;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
color: #9d9d9d;
}
.pie-izquierda {
flex: 0 1 75%;
-webkit-flex: 0 1 75%;
-moz-flex: 0 1 75%;
-ms-flex: 0 1 75%;
-o-flex: 0 1 75%;
text-align: left;
display: flex;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
align-items: center;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
justify-content: flex-start;
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
-o-justify-content: flex-start;
}
.pie-derecha{
flex: 0 1 25%;
-webkit-flex: 0 1 25%;
-moz-flex: 0 1 25%;
-ms-flex: 0 1 25%;
-o-flex: 0 1 25%;
}