michaellunsford Posted February 6, 2007 Share Posted February 6, 2007 what's the difference? div.container a { color:#000 } div.container > a { color:#000 } Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted February 6, 2007 Share Posted February 6, 2007 the first will style ANY a tag that is a decendant of div.container ie <div class="container"> <a .... <div class="subcontainer"> <a .... </div> </div> the second should only work on an anchor tag that is a first child of div.container i.e. <div class="container"> <a .... </div> But not any anchor that is a child of a child of div.container. Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted February 6, 2007 Author Share Posted February 6, 2007 That makes sense. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.