Here's the code snippet I'm currently working with:
.data-title {
font-weight: bold;
}
.data-content {
color: gray;
}
<p class="data-title">
Title
</p>
<p class="data-content">
Content
</p>
This is how I want it to look like in the end:
https://i.sstatic.net/jeaVV.png
However, there are two changes I'd like to make:
- Reduce the spacing between elements.
- Use a single class on a parent element instead of individual classes on paragraphs to style first and second lines accordingly.
<div class="my-class">
<p>Title</p>
<p>Content</p>
</div>