I have this snippet in my .css file:
.attachment-label {
font-size: 10px;
font-style: italic;
color: rgba(0,0,0,.5);
}
When I try to use it in my HTML like this:
<div class="card-body">
<span class="attachment-label">Attachment</span>
<hr style=" margin-top: 0; margin-bottom: .5rem; border: 0; border-top: 1px solid rgba(0,0,0,.1);"/>
<div class="text-center">
<img class="card-img-top imageThumbnail" src="@TicketHeader.AttachmentPath" />
</div>
</div>
The span doesn't get styled. But if I include the styles inline like this:
<div class="card-body">
<span style=" font-size: 10px; font-style: italic; color: rgba(0,0,0,.5);">Attachment</span>
<hr style=" margin-top: 0; margin-bottom: .5rem; border: 0; border-top: 1px solid rgba(0,0,0,.1);"/>
<div class="text-center">
<img class="card-img-top imageThumbnail" src="@TicketHeader.AttachmentPath" />
</div>
</div>
It works. What could be the issue here?