- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Fri, 14 Aug 2009 15:00:01 -0700
- To: www-style@w3.org
Tab Atkins Jr. wrote: > > In other words, I want a gradient that goes left-to-right, but leaving > 100px free on each edge. I'm not sure how wide the box would be. I > can't do this in your proposal - something like "linear-gradient(left > / white 100px, silver 50%, white 100px)" would instead either do > nothing, or make an image with 100px of white, then 50px of > white->silver and 50px of silver->white, with white filling the rest. > > I can do this with the <bg-position> construction, as > "linear-gradient(100px top to calc(100% - 100px) top / white, silver, > white)". Alternatively, as linear-gradient(left 100px center to right 100px center / white, silver, white); ~fantasai
Received on Friday, 14 August 2009 22:01:02 UTC