Gradient Color for Bold Text

Community Contribution: Jaee Chew

CSS

.marker-bold strong,
.marker-bold b {
    background-color: #BADCFD;
 /* Marker yellow */
    padding: 0.1em 0.3em;
    border-radius: 0.2em;
    font-weight: bold;
}

HTML

<div class="marker-bold">
  This is a <strong>highlighted word</strong> in a sentence.
</div>

Last updated

Was this helpful?