Comments on: :target https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Fri, 15 Oct 2021 14:53:40 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Péramo Lionel https://css-tricks.com/almanac/selectors/t/target/#comment-1783702 Fri, 15 Oct 2021 08:10:54 +0000 http://css-tricks.com/?page_id=14275#comment-1783702 It seems that the page of the link A CSS Target does not exist anymore.

One question also about :target
How can we focus an element inside a zone activated by :target in JavaScript?
I found that in other cases, we can focus the input only by putting event.preventDefault() on a “click” eventListener but obviously it kills the target behaviour if I do that.

]]>
By: Mike Hobizal https://css-tricks.com/almanac/selectors/t/target/#comment-1147818 Mon, 10 Feb 2014 18:22:21 +0000 http://css-tricks.com/?page_id=14275#comment-1147818 This is very helpful, I used this info and the info you provided on “:nth-of-type” to create a content limiter with “show/hide” capability. Here’s the link, let me know what you think.

]]>