I am trying to set a gradient background for a site and have the following written:
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0.25, rgb(48,48,48)),
color-stop(1, rgb(135,135,135))
);
background: -moz-linear-gradient(
center top,
rgb(48,48,48) 25%,
rgb(135,135,135) 100%
);
background: -o-linear-gradient(
center top,
rgb(48,48,48) 25%,
rgb(135,135,135) 100%
);
Now, the background works perfectly in webkit browsers and also in Firefox but I just get the fallback fuchsia temporary colour in Opera. I am using Opera 11.10 beta which DOES support CSS gradients. Any ideas why this is not showing up correctly in Opera?
Also,
How would I go about making the same gradient in SVG for use in IE?
Component values may be arranged into property values as follows:
Several juxtaposed words mean that all of them must occur, in the given order.
A bar (|) separates two or more alternatives: exactly one of them must occur.
A double bar (||) separates two or more options: one or more of them must occur, in any order.
A double ampersand (&&) separates two or more components, all of which must occur, in any order.
Brackets () are for grouping.
Juxtaposition is stronger than the double ampersand, the double ampersand is stronger than the double bar, and the double bar is stronger than the bar. Thus, the following lines are equivalent:
a b | c || d && e f
[ a b ] | [ c || [ d && [ e f ]]]
Every type, keyword, or bracketed group may be followed by one of the following modifiers:
An asterisk (*) indicates that the preceding type, word, or group occurs zero or more times.
A plus (+) indicates that the preceding type, word, or group occurs one or more times.
A question mark (?) indicates that the preceding type, word, or group is optional.
A pair of numbers in curly braces ({A,B}) indicates that the preceding type, word, or group occurs at least A and at most B times.
The question mark means that the previous bracketed section is optional. If used then you can use (top or bottom) and/or (left or right) (eg. “top left”) or instead of all that use an angle (e.g. 45deg).
<color-stop>[, <color-stop>]+
);
The plus at the end says that the preceding bracketed section must appear once or more times. Basically meaning that you have two or more values.(e.g. blue, yellow).
Probably best to read up on it in full as I always have to look it up.