From 9cb4385a4318d85366d84546301a2a62b04e9812 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Tue, 25 Feb 2025 16:58:08 -0500 Subject: [PATCH] Add CSS to display state name on hover --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 3f73653..aad2365 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,12 @@ .state:hover { stroke-width: 1.5; } + .stateText { + visibility: hidden; + } + .state:hover ~ .stateText { + visibility: visible; + }