Update css so detail is relative and works with resize