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

前端 未结 11 947
广开言路
广开言路 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:08

    h2 { border-bottom: solid blue;}
    p { border-top: solid red; }
    

    Will get you close, then play around with margins and padding until things line up.

    http://jsfiddle.net/gR4qy/

提交回复
热议问题