Link to home
Start Free TrialLog in
Avatar of Rowby Goren
Rowby GorenFlag for United States of America

asked on

Is this ">" a css feature or a typo??

Hello,

I see this line in a stylesheet

div.moduletable_bigMenu li > a:link, a:visited, a:hover, a:active {

Is that > a feature or a typo?

If it's a css feature, what does it do?

And can it be compared to a comma , that I sometimes see in css.

Thanks!

Rowby
Avatar of Rowby Goren
Rowby Goren
Flag of United States of America image

ASKER

And to further show my ignorance

is

a

 the same as a:link?
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To the other bit :link is unvisited links as opposed to links that have been clicked.
Ah, thanks.

And  finally

is

a

 the same as a:link?
See comment above.
Similar but not the same.
Just targeting a would make all links the same color whether visited or not.
AHHHHHHH!

And that includes HOVER   --- ALL links, right?

Rowby
If you didn't set any other state then it would include all states. I've never used it as I will generally just set a style for all links with no hover or visited (sometimes visited).
If you don't set a style for no hover then will the browser default style kick in?
I just wanna clear something up (my inebriated state before interfered with my brain and fingers)

An anchor tag is not necessarily a link
<a>Hello</a>
is different from
<a href="somelink.html">Click Me</a>
See http://jsfiddle.net/vefh5/4/
a:link would not affect <a>Hello</a> because it is not a link.
Thanks GaryC123!

Rowby