i need hide second child of div (#parentdiv) irrespective of html-tag p, h2, h3 or div.
i write possible combinations in css, seemed clumsy html-tag of element here can vary , unpredictable. suppose writing html-tags not approach.
hence tried below generalized approach in css, did not work.
#parentdiv *:nth-child(2) { display: none; } i not need javascript solution.
the code looks , fine.. check brackets. may have forgot close brackets.
Comments
Post a Comment