Css quick questions

Does anyone know the code in CSS (i think) where if you click on an image, a box pops up and makes the image bigger and puts a white border around it. The webpage is still behind it, but it darkens.

Anyone know?