How would I make the radius 200px in width and height? I’ve read that this can be done in pixel units, but every attempt has failed.
background-image: -webkit-radial-gradient(75% 100%, circle farthest-corner, #ffffff, #ff7ae9 33%);
background-image: -o-radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%);
background-image: -ms-radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%);
background-image: radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%)
background-image: -moz-radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%);
edit: Updated for modern syntax, I’ve left the original below for a record of the 2011 syntax
You can set both the radius and position the gradient in pixel values or any other valid length unit.
In the example below
circle at 200px 200pxis setting the center point of the circle to 200px across and 200px down, this could also be any value accepted by background-position such as left or top.The next values are the color stops and are comma separated pairs of
color length. Again any valid value of color and length would workred 10%,#333 10pxandrgb(10,47,10) 1emwould all be valid.Values like px or em are absolute and percentage values would be relative to the gradient container.
Original Answer: