Solved

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

Posted on 2013-10-28
10
88 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Columns on Slider Mobile 4 48
Button Css BootStrap 2 34
Text in block not displaying properly 2 33
I can't get this footer to "stick" to the bottom! Why not? 4 19
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
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... …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now