Trying to fully learn CSS, and I'm coming across this one occasional syntax that I cannot find any documentation about.
That is the '>' operator. Here is an example of it being used:
So this style applies to <ul> elements with the class of "nav", then <li> elements nested within that...
But what does the '>' imply? Is that just a designator for another level of nesting?
Like
<ul class="nav"><li><ul>...</ul></li></ul>
That is the '>' operator. Here is an example of it being used:
Code:
ul.nav li>ul{
/*Make the sub list items invisible*/
display: none;
position: absolute;
width: 20ex;
left: 20ex;
margin-top: -1.4em;
margin-left: 9px;
}
So this style applies to <ul> elements with the class of "nav", then <li> elements nested within that...
But what does the '>' imply? Is that just a designator for another level of nesting?
Like
<ul class="nav"><li><ul>...</ul></li></ul>