Borek,
Normally you can only apply vertical alignment using the CSS property verical-align
to table elements (th, td). However...
If you're using DIVs then just fake it using table-cell
display. You will have to wrap up your .verticallyAlignedHGroup
in a parent DIV so you can declare its display as table though.
#verticalWrapper { display: table; }
.verticalAlignHGroup { display: table-cell; vertical-align: middle; }
The HTML would look something like this
<div id="verticalWrapper"> <!-- display: table -->
<div class="verticalAlignHGroup"> <!-- display: table-cell; vertical-align: middle -->
Some content
</div>
<div class="verticalAlignHGroup"> <!-- display: table-cell; vertical-align: middle -->
Some content
</div>
</div>
Hope that helps.