dimanche 23 mars 2014

Make divs flex but save proportions


Vote count:

0





.alldivs {

margin-left:2px;
margin-right:2px;

display:-webkit-box;
-webkit-box-orient:horizotal;
}


.div1 {
border: 4px solid black;
background:white;
margin:2px;
-webkit-box-flex:1;
}



.div2 {
border: 4px solid black;
background:white;
margin:2px;
-webkit-box-flex:1;
}

.div3 {
border: 4px solid black;
background:white;
margin:2px;
-webkit-box-flex:1;
}


How to make these 3 divs flex but save proportions? (I want them to be square or 2/3). And how to make images that I'm gonna place in these divs flex with them?



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire