One of the challenges I'm facing is formatting a header with a span tag that contains a date and some accompanying text. The goal is to make the text bold without affecting the formatting of the date.
In my CSS file, I have tried using :not(cls)
to target specific elements, but it seems to be impacting the styling of the date as well.
.parent {
display: flex;
}
.parent:not(.date) {
font-weight: bold;
}
.date {
padding-right: 20px;
}
<div class="parent">
<span class="date">the date</span> title goes here
</div>
What am I missing in this setup?