I want to remove a triangle from the bottom of a div
using a CSS trick involving borders. This involves creating a border with one transparent side and coloring the other sides to create the triangle effect. The issue I'm facing is that the div
has a percentage width, so the border needs to also have a percentage width (and possibly height, which is challenging because the div
doesn't have a specified height). Unfortunately, the css border-width
property doesn't support percentage values.
If anyone has alternative solutions to achieve the same "chopping" effect on the bottom of a responsive div
, I would appreciate it.
Some suggestions might include using images or adding one for this purpose, but that won't work in my case as there is a pattern involved that needs to be matched perfectly. Additionally, I prefer not to use multiple background images due to compatibility concerns.