I am trying to create a gradient, top to bottom, on only the right border of a series of divs. This is to create the illusion of a dividing line between the divs.
I’ve been researching this online and found some great ways to achieve this using two colors, but cannot find any for the use of more than two colors.
The effect I’d like to achieve is this: border goes from transparent at top, to grey in the center, to transparent at bottom.
What I’m looking to do, however, is add the gradient to the border, not the background. I’ve seen some fiddles where it’s done nicely, but not using more than two colors. When I try adding a stop, the code doesn’t work.
I’m sure it can be done - as I’ve seen examples with two color stops. So adding more should not be a problem. Thing is I don’t know why it isn’t working.