UPDATE
Upon finding and evaluating the site itself, I have the a solid solution:
- Place this style block at the end of
<head></head>
...
- ...or place it in the stylesheet: styles.css.
- Search for "navigation" and place after the last ruleset that starts with
#navigation...
- Do not include the tags if in a stylesheet.
The tags are for HTML page only:
<style>
#navigation a::after {
content: url(https://www.clearinghouseforsport.gov.au/__data/assets/image/0009/643176/icon_external.gif);
position: relative;
top: 5px;
left: 3px;
}
</style>
Note: Alternative selector is:a.navmenuitem::after
Review the PLUNKER
OLD
The obvious solution is to use class selectors. If editing the HTML is not possible, try using type selectors. In your case if you want to exclude the anchors that are in the footer try this:
footer a { background:none !important; }
OR
footer a[href^="http://"] { background: url(https://cdn1.iconfinder.com/data/icons/web-page-and-iternet/90/Web_page_and_internet_icons-14-128.png) no-repeat 20px 20px;
SNIPPET
a[href^="http://"] {
background: url(https://www.clearinghouseforsport.gov.au/__data/assets/image/0009/643176/icon_external.gif ) center right no-repeat;
padding-right: 16px;
margin: 10px;
}
footer a[href^="http://"] {
background: url(https://yourescape.ldara.com/_resources/images/content/icon_link.png) center right no-repeat;
padding-right: 20px;
}
<header>
<nav>
<a href="http://example.com/">NAV</a>
<a href="http://example.com/">NAV</a>
<a href="http://example.com/">NAV</a>
<a href="http://example.com/">NAV</a>
</nav>
</header>
<section>
<aside>
<a href="http://example.com/">ASIDE</a>
<a href="http://example.com/">ASIDE</a>
</aside>
</section>
<footer>
<a href="http://example.com/">FOOTER</a>
<a href="http://example.com/">FOOTER</a>
</footer>