Why does the first element get pushed down when its child contains text? What causes inline-block to behave this way?
Is there a way to align divs side-by-side while still allowing them to have children? For example, I want the grey box to contain a list of elements stacked vertically, while keeping everything aligned properly (which works fine if the boxes don't have children):
Check out the example here: http://jsfiddle.net/uwRwM/1/
.box {
display: inline-block;
}