3 ms·
This uses JavaScript, not CSS. CSS on the other hand, does have a built-in way to do gradients (CSS3+): *-colors: #color1 #color2 #color3 #color4 ect For
by Sephr 17y ago
This uses JavaScript, not CSS.
CSS on the other hand, does have a built-in way to do gradients (CSS3+):
*-colors: #color1 #color2 #color3 #color4 ect
For example, this demo makes use of border-colors gradients and border-radius: http://code.eligrey.com/css3/border-colors/styled.html http://code.eligrey.com/css3/border-colors/styled.html (Only shows gradient in browsers that support CSS3 like FF3 & Safari 3)
- robin_reala 17y agoWhile that’s really neat (and something I didn’t know about) it’s not something that makes an appearance in either the CSS3 Colors or Backgrounds & Borders specs. Call it a vendor specific CSS extension rather than CSS3 for the time being.