Forum Moderators: not2easy
is there any form of making a css class for IE so it displays an icon at the right of the external links?
I think this is possible with this code in Mozilla.
a[href^="http:"] {
background: url(images/remote.gif) right center no-repeat;
padding-right: 12px;
}
Can it be done in IE?
Thank you a lot, Simon.
Details the use of CSS attribute selectors.
So yes, it would be a[href^="http"] { }
However, this is CSS3, and I don't know which browsers would render it correctly :( Anybody know?
If this isn't cross-browser compatible, you could always just assign a class of external and manually apply such a style.