Making a diagonal ‘collage’ of images with html/css

  Kiến thức lập trình

How would I go about making a collage of images with diagonal borders, like this? (see image).

image showing a template where images are divided diagonally

I’ve tried some methods using the clip-path property, but that results in having to use unorthodox ways to determine the width and position of each picture.

I would prefer to do this using css styling, or possilby JavaScript, although I don’t see why JavaScript would be necessary in this case.

LEAVE A COMMENT