set color and margin