that’s the image and i’ve marked which shape i’m facing problem in to create it
I tried a lot of different videos on youtube and read and studied the code on different websites, but so far didn’t succeed in creating that shape.
that’s the image and i’ve marked which shape i’m facing problem in to create it
I tried a lot of different videos on youtube and read and studied the code on different websites, but so far didn’t succeed in creating that shape.
2
Answers
That is basically triangle image attached below the div box.
which is simplest and easy way of doing it.
Solution:
cut the image of triangle part that is below the Book Now button and add the image in below the box div.
You can do that with SVG Shapes. I recommend doing it that way, because if you want to have a border around it, it would be necessary (or the easiest way) to have a single shape.
3 ways of creating a shape:
Having a triangle placed below a square will cause some issues when designing borders, shadows, etc. Loading an image for creating the triangle will be an additional source to load (performance) and will get you into trouble if the image somehow can’t be loaded, the design will be broken then. Apart from that, an image will limit your design opportunities (e.g.
:hover
) and/or create additional unnecessary effort. And since it’s 2023, you don’t have to use oldschool 2000’s techniques anymore 😉