@raswonders
Posted
I like your solution, namely how you solved image responsiveness with bg. I was just wondering was there particular reason you went with span instead of div in here?
<div class="image-container">
<span class="background-image" role="img" aria-label="Gabrielle Essence Eau De Parfum image"></span>
</div>
@cacesasa
Posted
@raswonders Thank you, the reason I used span is because is an inline tag instead of blog, since I'm using a background image, I needed a way to described the image for accessibility purpose. The span does not hold the image itself, just the accessibility information, the image is hold by the div image-container. I hope that explanation help.
@raswonders
Posted
@cacesasa that's cool, thanks for clarifying.