Specifies a range of position-dependent colors, usually used to fill a region.

learn more… | top users | synonyms

291
votes
9answers
121k views

Is it possible to combine a background image and CSS3 gradients?

I want to use CSS3 gradients for my background color and then apply a background-image to apply some sort of light transparent texture. Is this possible?
147
votes
18answers
51k views

IE9 border-radius and background gradient bleeding

IE9 is apparently able to handle rounded corners by using the CSS3 standard definition of border-radius. What about support for border radius and background gradient? Yes IE9 is to support them both ...
140
votes
7answers
111k views

Gradients on UIView and UILabels On iPhone [duplicate]

Possible Duplicate: Manually drawing a gradient in iPhone apps? My application needs to display text in either a View or Label but the back ground must be a gradient as opposed to a true ...
132
votes
9answers
78k views

CSS3 gradient background set on body doesn't stretch but instead repeats?

ok say the content inside the <body> totals 300px high. If I set the background of my <body> using -webkit-gradient or -moz-linear-gradient Then I maximize my window (or just make it ...
78
votes
8answers
149k views

CSS3 Gradient Borders

I'm trying to apply a gradient to a border, I thought it was as simple as doing this: border-color: -moz-linear-gradient(top, #555555, #111111); This does not work, does anyone know what the ...
63
votes
13answers
79k views

Gradients in Internet Explorer 9

Does anyone know the vendor prefix for gradients within IE9 or are we still supposed to still be using their proprietry filters? What I've got for the other browsers is: background-image: ...
60
votes
3answers
23k views

Multi-gradient shapes

I'd like to create a shape that's like the following image: Notice the top half gradients from color 1 to color 2, but theres a bottom half that gradients from color 3 to color 4. I know how to ...
58
votes
4answers
59k views

Android: Using linear gradient as background looks banded

I'm trying to apply a linear gradient to my ListView. This is the content of my drawable xml: <?xml version="1.0" encoding="utf-8"?> <shape ...
40
votes
10answers
60k views

Gradient colors in Internet Explorer

I know that Internet Explorer has some proprietary extensions so that you can do things like create divs with a gradient background. I can't remember the element name or it's usage. Does anyone have ...
22
votes
2answers
22k views

Circular gradient in android

Im trying to make a gradient that emits from the middle of the screen in white, and turns to black as it moves toward the edges of the screen. As I make a "normal" gradient like this, I have been ...
21
votes
6answers
18k views

Use CSS3 transitions with gradient backgrounds

I'm trying to transition on hover with css over a thumbnail so that on hover, the background gradient fades in. The transition isn't working, but if I simply change it to an rgba() value, it works ...
18
votes
3answers
14k views

Can you create gradients that fade to opacity using CSS or JavaScript?

WebKit has introduced the ability to create CSS gradients. For example, with the following code: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#000)); However, is it possible to ...
16
votes
3answers
4k views

Get Slightly Lighter and Darker Color from UIColor

I was looking to be able to turn any UIColor into a gradient. The way I am intending to do this is by using Core Graphics to draw a gradient. What I am trying to do is to get a color, lets say: ...
16
votes
2answers
11k views

How to make transparent gradient?

I have the following gradient: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient ...
16
votes
1answer
16k views

How to draw a smooth/dithered gradient on a canvas in Android

Several answers mention to use GradientDrawable.setDither(true) to draw smooth gradients in Android. That has no effect in my code. Any idea what I have to change to get a well looking gradient in my ...

1 2 3 4 5 72
15 30 50 per page