Neil Brown on Nostr: CSS nerds, I need your help, please. I can style a link to an external site with the ...
CSS nerds, I need your help, please.
I can style a link to an external site with the full URL path in text after it, using:
a[href]:not([href^="https://neilzone.co.uk"; i])::after{
content: " (" attr(href) ") ";
}
I don't think that there is a CSS-only (i.e. no JavaScript, no extra element/attribute in the html) way of limiting this to just the domain of the external link, rather than the full href link.
Am I wrong?
#css #webdev
I can style a link to an external site with the full URL path in text after it, using:
a[href]:not([href^="https://neilzone.co.uk"; i])::after{
content: " (" attr(href) ") ";
}
I don't think that there is a CSS-only (i.e. no JavaScript, no extra element/attribute in the html) way of limiting this to just the domain of the external link, rather than the full href link.
Am I wrong?
#css #webdev