Here is the HTML code snippet I am currently working with:
<style>
p::after {
content: "%";
}
</style>
<div class="counter-box">
<p data-value="185">100</p>
</div>
At present, my CSS applies text injection to all paragraph elements. However, I want to target only the paragraphs within elements with a class of counter-box for text injection.