Format layout.