alignment by margin and padding