Forum Moderators: not2easy

Message Too Old, No Replies

External link icon through css in IE?

         

simonvlc

12:57 pm on Sep 11, 2005 (gmt 0)

10+ Year Member



Hello,

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.

Setek

5:16 am on Sep 12, 2005 (gmt 0)

10+ Year Member



[w3.org...]

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.