It is not possible to mix percentages and pixels in the way you think. However, you can do the following:
.innerdiv { display: inline-block; width: 30%; margin: 2%; }
However, you can also use:
.wrapper { column-count: 3; -moz-column-count: 3; -webkit-column-count: 3; column-gap: 1px; -moz-column-gap: 1px; -webkit-column-gap: 1px; }
However, ordering the columns fills the left and then moves to the next element, so using this will ruin your order, but balance the height. Other CSS used will be grid-columns , but this is not yet supported, so don't use it at the moment.
Ktash source share