position switch to margin in css