The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Little white triangle on images Reply To: [Solved] Little white triangle on images


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.