user2212564
user2212564

Reputation: 261

CSS Linear gradient borders

I am trying to use a CSS3 Border gradient property and using an example from css tricks. I can get it to work using their example but cant seem to get my colours in that i am after and i think it's syntax errors. Is someone able to let me know what i may be missing?

I am after a left and right border on a div with the gradient going from #d1d2cd to #e3e4df 5 pixels wide?

I have mocked up an example in js fiddle: http://jsfiddle.net/DqgPy/

Thanks

Upvotes: 0

Views: 1284

Answers (1)

cs_stackX
cs_stackX

Reputation: 1527

I'd recommend checking out a site like:

http://www.colorzilla.com/gradient-editor/

Play around with the gradient settings, and it will auto-generate the CSS you need (including support for older browsers). At the very least, the code provided might help you figure out any of your syntax errors.

Upvotes: 1

Related Questions