I am integrating a third party application into our application , there is one "Share" functionality that i want to hide.
<table>
<tr>
<td>
<img src="a" title="broadcast" >
</td>
<td>
<img src="b" title="Share" >
</td>
<td>
<img src="c" title="favourite" >
</td>
</tr>
</table>
I can hide the td using css:nth-child selector but the problem is it hides other elements as well as it has similar HTML skeleton across the application. so i targeted the image using its data-attribute but after that not sure how i can get its immediate parent td where i could apply display : none.
I can not modify the third part applications html tags, so there is no scope to add class or id to td and img elements. Only they have provided a customerCss file with which we could hide or change color for branding and all.
Thanks in advance..
here is what i tried to target the img tag
img[title = 'Share']:parent {
display : none;
}