<div class='parent'>
<div class='child'>child 1</div>
<div class='child'>child 2</div>
</div>
.parent {
text-align: center;
}
.child {
display: inline-block;
vertical-align: middle;
}
#element1 {display:inline-block;margin-right:10px;}
#element2 {display:inline-block;}