can anyone explain this simple code

Discussion in 'CSS' started by judge0, Apr 25, 2008.

  1. #1
    border-color:#F5AC40 rgb(220, 220, 220) -moz-use-text-color
    Code (markup):
    this first time see a border-color consist of all this color i always used to see border-color consist of only one color
    can anyone explain this
     
    judge0, Apr 25, 2008 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    It's shorthand. It is specifying the top, side and bottom border colours respectively.
     
    krt, Apr 25, 2008 IP
  3. judge0

    judge0 Peon

    Messages:
    400
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thx for replay .but what this
    -moz-use-text-color
    Code (markup):
     
    judge0, Apr 25, 2008 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Colors may be set to the user's default OS window settings. For example: windowtext, graytext, menutext, highlight, etc.

    The -moz-use-text-color is a proprietary, and valid*, method of setting the bottom border (in this case) to the same color as the text. In a non-Mozilla browser, the value will be ignored, and the bottom color will be the same as the top's.

    cheers,

    gary

    * It is valid, but the validator wouldn't know about that value and would treat it as an error.
     
    kk5st, Apr 26, 2008 IP