How can I target with css the anchor tag named #individualProfile
that is a child of another a href
?
I have this from inspected element, where the tag is appended using append()
How can I target with css the anchor tag named #individualProfile
that is a child of another a href
?
I have this from inspected element, where the tag is appended using append()
Copyright © 2021 Jogjafile Inc.
As Paulie_D just mention, you shouldn't have an
a
wrapped in anothera
.Meanwhile, if you can't change the HTML structure, you can try this :
This targets the first
a
with anhref
attribute, then the>
select a direct child of it, and then specify thea
with the wantedhref
.This should anyway be more specific, as there can be a lot of other
a
withhref
attributes in your page than the one you want to style.Here's a reference on MDN of attribute selectors for further informations.