I have an array of floating divs that match 4 in a row. Their width and right margin are up to 100%. However, their lower bound is static. CSS below:
.item { position: relative; float: left; height: 200px; width: 23%; margin-right: 2%; margin-bottom: 15px; background-color: #ddd; }
Is there a way to get the value of the right margin and apply it to the bottom margin so that they are always consistent?
Here is an example of what I have: http://jsfiddle.net/kVZMU/
source share