Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Antti's answer is sufficient for selecting anchor's whose href's begin with <strong>http</strong> and gives a perfect rundown on the available CSS2 <em>regex-esque</em> attribute selectors, like so:</p> <blockquote> <pre><code>Attribute selectors may match in four ways: [att] Match when the element sets the "att" attribute, whatever the value of the attribute. [att=val] Match when the element's "att" attribute value is exactly "val". [att~=val] Match when the element's "att" attribute value is a space-separated list of "words", one of which is exactly "val". If this selector is used, the words in the value must not contain spaces (since they are separated by spaces). [att|=val] Match when the element's "att" attribute value is a hyphen-separated list of "words", beginning with "val". The match always starts at the beginning of the attribute value. This is primarily intended to allow language subcode matches (e.g., the "lang" attribute in HTML) as described in RFC 3066 ([RFC3066]). </code></pre> </blockquote> <p>However, here is the appropriate, UPDATED way to select all outgoing links using the new <a href="http://www.w3.org/wiki/CSS/Selectors/pseudo-classes/%3anot" rel="noreferrer">CSS3 <strong>:not</strong> pseudo class selector</a> as well as the new <a href="http://www.w3.org/TR/css3-selectors/#attribute-substrings" rel="noreferrer"><strong>*=</strong> substring syntax</a> to make sure it disregards any internal links that may still begin with <strong>http</strong>:</p> <pre><code>a[href^=http]:not([href*="yourdomain.com"]) { background: url(external-uri); padding-left: 12px; } </code></pre> <p>*Note that this is unsupported by IE, up to at least IE8. Thanks, IE, you're the best :P</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload