kyllle
February 3, 2011, 10:35am
1
Hi all,
I was wondering if you can help me with this question, can I set a border-left with a linear gradient?
Basically I want the border top have a top colour of black and a bottom colour of white?
Using border-colours the gradient moves from left to right for border-left but I ideally would like top to bottom?
Thanks
Kyle
Of course!
Use with caution, not many browsers support it.
Erik_J
February 4, 2011, 9:34am
3
The border gradient can not be set gradient along the border, it’s set from outside in only.
But as a work around you could use a tall box as a left border (e.g. AP left:-x 100% high covering the real left border) and give that box a vertical gradient.
Maybe Ryan meant something like that.
Erik_J:
The border gradient can not be set gradient along the border, it’s set from outside in only.
But as a work around you could use a tall box as a left border (e.g. AP left:-x 100% high covering the real left border) and give that box a vertical gradient.
Maybe Ryan meant something like that.
Of course, I didn’t mean it was possible, but possible to replicate it :).
My wording was fuzzy there.