Richd.nl

a collection of front-end idea's, tutorials and snippets

CSS

The :target Trick [CSS:show/hide, modal]

The :target pseudo-class refers to an element within the document that the URL’s fragment points to. For example, this piece of text is wrapped in a <mark> element which has an ID of #target-test. If you went to the url, https://bitsofco.de/the-target-trick#target-test, then that

Source: The :target Trick

 

Comments are Closed

Theme by Anders Norén