In HTML I have:
<td bgcolor="#f9f8bb">
<b>text here</b>
How can I select this specific bold text that is under the td element using CSS? I wonder if it possible to write something like:
td.b[bgcolor*="#f9f8bb"] {...}
>Solution :
You can give this a shot:
For all child nodes
td[bgcolor="#f9f8bb"] > b {
color: red;
}
For a single child node
td[bgcolor="#f9f8bb"] b {
color: red;
}
References: