How to make double lines border in CSS, each line in different color, without using background image?

前端 未结 11 926
广开言路
广开言路 2020-12-24 12:38

How to make a double line border in CSS, each line in a different color without using background-image?

For example like this:

11条回答
  •  無奈伤痛
    2020-12-24 13:12

    it is possible in CSS3 very easily. try with the following code

    h2
    {
      border-bottom: 2px solid blue;
      -moz-box-shadow: 0px 2px 0px #ff0000; /* Firefox 3.6 and earlier */
      -webkit-box-shadow: 0px 2px 0px #ff0000; /* Safari and Chrome */
      box-shadow: 0px 2px 0px #ff0000;
    }
    

提交回复
热议问题