I have a div containing elements with display set to inline-block. These contained elements have various heights. The resulting lines in the div have various heights, accord
That can only be done using margin style. You don't need to wrap each contained DIVs with another DIV. Just use the STYLE tag.
Here's an example. Border and colorings are added for demo purpose.
variable
variable stuff variable
variable stuff
variable
variable stuff variable stuff
variable
variable
variable
variable