Border color gradient?

Discussion in 'CSS' started by SuPrAiCeR69, Mar 20, 2009.

  1. #1
    Is it possible to make the border color a gradient?
    Or even to make 20% of the left border one color and the other 80% of the left border another color?

    I'd like to achieve it only with css not using images

    See image attached (left border mainly)

    [​IMG]
     
    SuPrAiCeR69, Mar 20, 2009 IP
  2. ivogue

    ivogue Peon

    Messages:
    246
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Umm I don't think so. you can make it so the left border is one color, top border is one color, etc etc. You will have to use a image.
     
    ivogue, Mar 20, 2009 IP
  3. CoryR

    CoryR Active Member

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    70
    #3
    It's not supported in all browsers as of yet, but it's better than nothing: border-image
     
    CoryR, Mar 21, 2009 IP
  4. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You could do something like:

    background: url(myborder.gif) #000 bottom left no-repeat;

    so you use the image to act as the bottom part of the border and the colour for the top part.
     
    wd_2k6, Mar 21, 2009 IP
  5. SuPrAiCeR69

    SuPrAiCeR69 Peon

    Messages:
    216
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks guys, I appreciate the responses - just abit rusty on my css :)
     
    SuPrAiCeR69, Mar 21, 2009 IP