Let $f$ be continuous and $f(x_0) \neq 0$. Let $\epsilon:=\frac{|f(x_0)|}{2}$.
Because f is continuous there exists a $\delta>0$ so that for every $x$ with $|x-x_0|<\delta \Rightarrow |f(x)-f(x_0)|<\epsilon$.
Why does this imply that $|f(x)|>|f(x_0)|-\epsilon$?
Note that, by the triangle inequality, $$|f(x_0)|=|f(x)+f(x_0)-f(x)|\leq|f(x)|+|f(x_0)-f(x)|$$ Rearranging, we have $|f(x_0)-f(x)|\geq|f(x_0)|-|f(x)|,$ and thus $$\varepsilon>|f(x)-f(x_0)|=|f(x_0)-f(x)|\geq|f(x_0)|-|f(x)|.$$ Adding $|f(x)|-\varepsilon$ to both sides gives the desired result.