Hello! I try, using the pseudo-element: after, to add something after all the pictures of a certain class. But nothing is displayed.

.model_images_preview { border: 1px solid #fff; box-shadow: 2px 2px 3px #000; } img.model_images_preview::after { content: 'что-нибудь'; } 

    1 answer 1

    Note. This element does not fully define elements (such as IMG in HTML). This will be defined in more detail in a future specification.

    From the official specification . In general, while with <img> will not work.

    • Thank you, but it doesn’t work either - masha2
    • Rewrote the answer. - Zhukov Roman