Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
traversing in css or jquery?
well when i have such case
#parentA ul li a
-or-
#parentA a
what if i am sure that #parentA wont have some other Anchors needed to be styled differently
the question is should give detailed traversing details -always-
1 Answer
- ?Lv 47 years agoFavorite Answer
No. But it depends.... For example,
1) #parentA a{color:#ff0000;}
it will displays all the <a> color as "RED" when we use it in between the <div id="parentA"></div>
2) If you wish to display the <a> color as "GREEN" in some of the anchor tag in between the same <div id="parentA"></div> means, you have to use the "descendant selector"
#parentA ul li a{color:#00ff00;}