I want to style all external links in my website (WordPress). I’m trying with:
.post p a[href^="http://"]:after
But WordPress put the entire url in the links… So, how could I style all links that doesn’t start with http://www.mywebsite.com ?
Thank you.
2021 Solution
2014 Solution
Using some special CSS syntax you can easily do this. Here is one way that should work for both the HTTP and HTTPS protocols: