Can CSS override the bold style of an existing <b> bold tag?

Adrian M. picture Adrian M. · Apr 24, 2011 · Viewed 29.3k times · Source

I have a script that has a breadcrumb styled outside of my reach (core files), and I want to override all its styling using CSS. The text looks like this:

<div class="someclass">
<b>Some Text</b>
</div>

I want to style the <div> to make it ignore the bold tag. Is this possible without removing the <b> tag and just using external CSS?

Answer

SLaks picture SLaks · Apr 24, 2011

Yes:

.someClass b {
    font-weight: normal;
}