dynamic margins for vertically aligned content