In CSS #lightbox :target placed after the CSS token, say, for example, #lightbox means that the internal code of your #lightbox:target rule will be evaluated if and only if your page URL is added using #lightbox for example, http://www.stackoverflow.com/#lightbox . In this case, the browser will evaluate the following code:
#lightbox:target { display:block; }
source share