target first occurence of element css -


I can add & lt; A & gt; I want to target the first time of the element, the first child does not work because it is for all children & lt; A & gt; s selects any ideas?

  & lt; Li class = "cat-item cat-item-1 current-cat" & gt; & Lt; A title = "See all posts filed under the basket" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=1" & gt; Basket & lt; / A & gt; & Lt; Ul class = "children" & gt; & Lt; Li class = "cat-item cat-item-19" & gt; & Lt; A title = "View all posts filed under Article list" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=19" & gt; Article List & lt; / A & gt; & Lt; Ul class = "children" & gt; & Lt; Li class = "cat-item cat-item-20" & gt; & Lt; A title = "View all posts entered under mobile" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=20" & gt; Mobile & lt; / A & gt; & Lt; Ul class = "children" & gt; & Lt; Li class = "cat-item cat-item-21" & gt; & Lt; A title = "see all the posts currently entered" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=21" & gt; Current & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li class = "cat-item cat-item-22" & gt; & Lt; A title = "See all posts filed under the desktop" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=22" & gt; Desktop & lt; / A & gt; & Lt; Ul class = "children" & gt; & Lt; Li class = "cat-item cat-item-23" & gt; & Lt; A title = "see all the posts currently entered" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=23" & gt; Current & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt;    

You must first target the li and then this is the anchor link

  ul li: The first child is a {/ * your style is here}} It is hard to be more specific, but if you are talking about  children  ul you can make it  
  ul.children & gt; Li: First hair is a {/ * your style is here}   

If you mean

  & lt; Li class = "cat-item cat-item-1 current-cat" & gt; & Lt; A title = "See all posts filed under the basket" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=1" & gt; Basket & lt; / A & gt;   

CSS will

  li.cat-item.cat-item-1.current-cat & gt; A {/ * styles * /}    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -