Interesting CSS effect
Apr. 16th, 2012 12:28 amWhat's the Deal with :target in CSS?
Here's a neat effect to mark out the currently linked-to comment item. Put this in your journal's CSS:
Then switch which comment is currently active by editing the #cmt... at the end of the URL.
I have custom comments turned off in my journal, so here's a demo of :target in action on a separate page.
Note: not currently useful for anything because we don't link to our comments this way -- but still kinda neat!
Here's a neat effect to mark out the currently linked-to comment item. Put this in your journal's CSS:
Then switch which comment is currently active by editing the #cmt... at the end of the URL.
I have custom comments turned off in my journal, so here's a demo of :target in action on a separate page.
Note: not currently useful for anything because we don't link to our comments this way -- but still kinda neat!