Using css child selector

Posted by David Thorisson on Stack Overflow See other posts from Stack Overflow or by David Thorisson
Published on 2010-03-04T18:23:21Z Indexed on 2010/03/17 21:41 UTC
Read the original article Hit count: 311

Filed under:
|

I am trying to apply css on the first A element inside .Outer,

 .Outer > a:first-child {font-weight:bold}

doesn't work. Why?

<div class="Outer">
 <img src='image123.jpg' />
 <a href="Default.aspx?ID=4083" id="ctl00_CPH_Main_Rep_List2_ctl03_HyperLink1">John Johnsson</a>
 <a href="../Users/ViewList.aspx?module=Occupation&amp;ID=70">Doctor</a>
 <a href="../Workplaces/Default.aspx?ID=31">Mayo Clinica>
</div>

© Stack Overflow or respective owner

Related posts about css

Related posts about selectors