The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Flexible triangles using borders?
Nope.
feelings below.. -_-
I am left with the feeling of yes this must be able to be done with only CSS. Is it worth it? Maybe not.
As I thought….if you have a single triangle image (which I don’t have right now), it can be done as a bg image.
http://codepen.io/Paulie-D/pen/ixKLf
Notice the image maintains a set height and is still a full image but the image is stretched horizontally according to need.
http://codepen.io/wolfcry911/pen/yiBhK
Odd…it’s not working for me in Chrome.