Home › Forums › CSS › [Solved] Little white triangle on images › Reply To: [Solved] Little white triangle on images
May 11, 2014 at 2:28 pm
#169828
Participant
I’d just use a pseudo element. Note you cannot apply a pseudo element to an <img />
directly so you must use a wrapping element such as <figure> which is a semantic use so no worries there. Figure is a block level element so make sure to set it to float: left or set a specific width that matches the image inside so that your psuedo element is positioned properly.