How do you take the center hub cap off?

How do you take this center hub cap off? Do you have to pull the whole wheel off? It won't come off with a screwdriver prying it and I don't want to break it.

Also, how do you get it to stay on tighter and not rattle?

Thanks!