• 2019-11-20

    Border color will inherit from color

    Comments

    Start a discussion

    When using color and need the same color for the border, there is no need to specify it, as the border-color will inherit from color.

    div {
      color: red;
      border: 2px solid;
    }