Format and add margin.