OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

CSS: Style external links

  • Thread starter Thread starter thom
  • Start date Start date
T

thom

Guest
I want to style all external links in my website (Wordpress). I'm trying with:

Code:
.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.
<p>I want to style all external links in my website (Wordpress). I'm trying with:</p>

<pre><code>.post p a[href^="http://"]:after
</code></pre>

<p>But Wordpress put the entire url in the links... So, how could I style all links that doesn't start with <a href="http://www.mywebsite.com" rel="noreferrer">http://www.mywebsite.com</a> ?</p>

<p>Thank you.</p>
Continue reading...
 

Latest posts

Top