Comments on: :root https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Tue, 03 Jan 2023 09:46:24 +0000 hourly 1 https://wordpress.org/?v=6.5.5 By: Johny Why https://css-tricks.com/almanac/selectors/r/root/#comment-1802573 Tue, 03 Jan 2023 09:46:24 +0000 http://css-tricks.com/?page_id=14265#comment-1802573 I’m trying to style the body when a div gets focus. I tried this but no luck. Any ideas?

]]>
By: Waqar Hussain https://css-tricks.com/almanac/selectors/r/root/#comment-1751943 Sat, 12 Oct 2019 11:00:25 +0000 http://css-tricks.com/?page_id=14265#comment-1751943 thanks, it’s really helpful. I always wondered why we just do not use HTML as a parent selector.

]]>