blog/
How to float divs with different height
It was a little complicated to float divs with different height via clean css. Until the flexbox came!
Here’s what shoul be applied to the parent element (the container element) and everything will go well:
.parent {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: -moz-box;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
Может быть интересно:
- Calculate inclination of a roof valley with Python
- Автозамена в Sublime (regex, grep)
- Зарплата архитектора
- Про Python и ArchiCAD: удалить лишние слои
- Маркер уклона для ArchiCAD
▩