I am trying to create a layout where I have a big image on the left side and four smaller images arranged in a grid on the right side. The overall container should have skewed edges, as shown in the image below:enter image description here
I tried using clip path but i am not able to get the top and bottom spacing. and i also followed this article https://css-tricks.com/css-grid-and-custom-shapes-part-3/.
2
Answers
Do you mean something like this?
My guess is that you were attempting to to use the clip-path feature while inserting incorrect coordinates for polygons. This would cause
clip-path
to not work properly. There are many tools to help fix this mistake, but one that i found with a quick search was this. I hope this helps!To get a responsive layout you need to work in relative (e.g. %) terms.
The measurements used in this snippet were obtained simply using a ruler so you may want to alter them to get perfect accuracy for your required layout.
The basic layout is a 2×2 grid with the first column being twice the width of the second column and the first element spanning two rows.
The clipping is done on the whole layout element.