Solved

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

Posted on 2013-10-28
10
92 Views
Last Modified: 2013-11-01
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
0
Comment
Question by:Rowby Goren
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39607473
And to further show my ignorance

is

a

 the same as a:link?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39607489
Matches direct children only
So it wouldn't match a:link if it was a deeper child

e.g
This would match
<div class="moduletable_bigMenu li"><a></a></div>

This wouldn't because it is not a direct child
<div class="moduletable_bigMenu li"><div><a></a></div></div>
0
 
LVL 58

Expert Comment

by:Gary
ID: 39607495
To the other bit :link is unvisited links as opposed to links that have been clicked.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Author Comment

by:Rowby Goren
ID: 39607497
Ah, thanks.

And  finally

is

a

 the same as a:link?
0
 
LVL 58

Expert Comment

by:Gary
ID: 39607506
See comment above.
Similar but not the same.
Just targeting a would make all links the same color whether visited or not.
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39607514
AHHHHHHH!

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

Rowby
0
 
LVL 58

Expert Comment

by:Gary
ID: 39607535
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).
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39607620
If you don't set a style for no hover then will the browser default style kick in?
0
 
LVL 58

Expert Comment

by:Gary
ID: 39607693
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.
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 39617552
Thanks GaryC123!

Rowby
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question