![]() ![]() We could have written this in several other ways, all of which are valid. …where it is assumed that the location of the gradient starts at the very center of the element ( 50% 50%) and is evenly distributed between the twi color values. Find gradients for your projects Filter by colors All colors. Any color value is accepted here, including hex, named, RGB and HSL. color-stop: These are color values that define the gradient.We can also specify an exact position using a numeric value, including percentage, all of which are relative to the element’s bounding box. That means top, right, left, and center all work here, as well as combinations where two named values (e.g. position: This works very much the same way that it does on background-position.Again, negative values are a no-no, but percentages are fair game since the size is relative to the gradient box rather than the element. ![]()
0 Comments
Leave a Reply. |