Solved

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

Posted on 2013-10-28
10
93 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
Independent Software Vendors: 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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

717 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