Two color borders

Viewed 216039

Client wants two color borders for an embossed look. Can I do this on one element? I was hoping to avoid stacking two DOM elements with individual borders.

12 Answers

Adding the following CSS properties to a border will achieve a double border of two distinct colors and identical widths for those who are interested.

Example:

Selector {
    border: 10px red;
    border-block-start-style: ridge;
    border-inline-start-style: ridge;
    border-inline-end-style: groove;
    border-block-end-style: groove;
}
Related