2

How can I appply gradient to the border of a div using CSS ? Any one example please. I have tried using google, but not able to do it.

teenup
  • 7,459
  • 13
  • 63
  • 122
  • 1
    possible duplicate of [Is it possible to make a gradient border with css3?](http://stackoverflow.com/questions/6619818/is-it-possible-to-make-a-gradient-border-with-css3) – Madara's Ghost Aug 29 '11 at 15:02
  • 1
    css-tricks has good video/demos on border gradients...http://css-tricks.com/video-screencasts/95-a-tale-of-border-gradients/ – MikeM Aug 29 '11 at 15:04

2 Answers2

1

the trick is to use a wrapper and had an background image to it, so it's IE7+ proof

<span class="buttonWrapper">
   <input type="button" value="Submit" />
</span>

live example on JsBin

balexandre
  • 73,608
  • 45
  • 233
  • 342
0

http://jsfiddle.net/nicktheandroid/b875w/1/

check out my demo, i'm in the process of trying to get the gradient to only be on the right border, not the others.

android.nick
  • 11,069
  • 23
  • 77
  • 112