Search code examples
htmlcsstypography

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


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?


Solution

  • Yes:

    .someClass b {
        font-weight: normal;
    }