html - CSS - Changing one indirect child of parent with specific class -
I am trying to reach children h1 all articles Class .category- member without affecting any of its other children, I have only effected .blog-content and h1 There is no luck with it. Besides, it is being used in WordPress, so I am hoping to do this without adding a class in h1 Blog posts will be colored based on the original class category.
Thank you in advance!
& lt; Article ID = "Post-3107" class = "Post-10710 Post Type-Post Status-Publishing Format-Standard-Thumbnail Herentry Category-Member Span 6 Blog-Article Grid Normal" & gt; & Lt; Div class = "line-fluid" & gt; & Lt; Div class = "line-fluid" & gt; & Lt; Div class = "span12" & gt; & Lt; Div class = "content post_format_standart" & gt; & Lt; Div class = "top_c" & gt; & Lt; H1 & gt; & Lt; A href = "http://wholeworldwater.dev:8080/another-test-post/" & gt; The second test post & lt; / A & gt; & Lt; / H1> & Lt; / Div & gt; & Lt; Div class = "blog-content" & gt; Advertising for liability has been established in a very effective manner, Donique and Molly Sipian Nam rhoncus urna dolo & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Article & gt;
Use a selector such as .category-member h1 {.. .. ..} . Everything that is h1 , has a parent who has class class-member .
Comments
Post a Comment