Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- adding css to hyperlinks


lucy24 - 1:11 am on Jun 9, 2012 (gmt 0)


If there's a conflict between

.class (generic)

and

a.class (specific to a)

the browser will go with the <a class...> version. This is much safer than messing about with !important flags.

:link shouldn't be necessary, as it's the default behavior.

Here as elsewhere, it really helps to explain in English what the problem is that you're trying to solve. Are you dealing with an anchor class as such

<a class = "blahblah" ...

or do you want the rule to apply to any anchors that come inside of some other element, like

<div class = "blahblah" ...
<a href ...

?


Thread source:: http://www.webmasterworld.com/css/4463039.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com