Suppose I have a compact metric space $X$ with an open set $O \subsetneq X$ and a compact set $C \subset O$ given. Is it possible to find another compact set $\tilde{C}$ such that $C \subsetneq \tilde{C} \subset O$?
My idea was to check the distance between the disjoint sets $C$ and $X\setminus O$ and hopefully find a lower bound $\varepsilon > 0$. Then I could expand the set $C$ by $\varepsilon/2$ and take the closure. However, I think the dist-function is not continuous on $C \times X\setminus O$, it is only componentwise contiuous? Is it possible to find such $\tilde{C}$?