Updating styling and alignment of elements