I am looking to add an image or icon in front of each label in my pricing table. I am considering using the :before pseudo element, but the most important thing is that the image maintains its proportions and stays within the height of the span. The height of the span is variable and depends on the parent element, which changes based on screen size.
There are three labels: "basic" with one image, "premium" with two images, and "ultimate" with three images. I want to replace the parentheses with the images for each label.
<span class="label">
() BASIC
</span>
<span class="label">
()() PREMIUM
</span>
<span class="label">
()()() ULTIMATE
</span>
<br/><br/>
<img src="https://i.imgur.com/LS2fyR9.png"/>
.label{
background-color:black;
color:white;
padding:10px;
display:inline-block;
}
.label:before{
content:""
}
https://jsfiddle.net/q3kngfs9/
Any assistance would be greatly appreciated!