dross Posted May 4, 2023 Posted May 4, 2023 Hello, I am trying to figure out how to target individual links on a page in order to change the color on "hover". Different links appear on different colored background, so I'd like to be able to target each link individually in order to change the hover color depending on whether or not it's a dark or light background. Thanks if you can help me.
tuanphan Posted May 6, 2023 Posted May 6, 2023 Hi, Can you share link to this page? We can check easier dross 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
dross Posted May 6, 2023 Author Posted May 6, 2023 How do I create a way for you to see the site? I haven't done that before. The site that is at the current URL is not the one I'm talking about. I am working on a new site that isn't live. Thanks so much.
Vicks Posted May 6, 2023 Posted May 6, 2023 go to setting > site availability, choose password protected. give any password, and then you can post the link with password here.
Vicks Posted May 6, 2023 Posted May 6, 2023 by the way, you can target individual links by their target ( href attribute ). if you are familiar with CSS, its written like this: [href='/path/to/your/link'] { your custom styles here }
dross Posted May 8, 2023 Author Posted May 8, 2023 On 5/7/2023 at 6:43 AM, Vicks said: by the way, you can target individual links by their target ( href attribute ). if you are familiar with CSS, its written like this: [href='/path/to/your/link'] { your custom styles here } Thank you so much. I couldn't get that to work, but this worked for me: section[data-section-id="6456e8d964adaf26cc121c76"] h4 a:hover { color: #194D63 !important; } tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment