Is there a way to make my block-elements behave like in this example:
Desired effect:
|----|----|
|1111|2222|
|1111|----|
|1111|3333|
|----|----|
|4444|
|----|
Actual result:
|----|----|
|1111|2222|
|1111|----|
|1111|
|----|----|
|3333|4444|
|----|----|
.wrapper {
background-color:red;
width:220px;
}
.block {
background-color:blue;
height:100px;
width:100px;
display:inline-block;
vertical-align:top;
margin:4px;
}
.long {
height:200px;
}
<div class="wrapper">
<div class="block long">
</div>
<div class="block">
</div>
<div class="block">
</div>
<div class="block">
</div>
</div>