Styling External Links in CSS


Differentiate external links from internal ones using icons or styles.

Source Code

a[href^="http"]:not([href*="mywebsite.com"])::after {
    content: '⤴';
    padding-left: 4px;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments