The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Flexible triangles using borders? Re: Flexible triangles using borders?


It doesn’t work because the width of the li is not fixed and so you can’t set a top/bottom border width for the pseudo element either.

A pseudo element would be the way to go but it will need a background image of some kind….one that scales appropriate to the size of the element.

Perhaps playing with background-size?