CSS double border (2 colors) without using outline?

前端 未结 7 978
小鲜肉
小鲜肉 2020-12-03 14:07

I was wondering what you guys think is the easiest way to get a double border with 2 colors around a div? I tried using border and outline together and it worked in Firefox

7条回答
  •  悲哀的现实
    2020-12-03 15:03

    A very simple solution you could use as a fall-back if nothing else would be to use two divs. Your main div, and then an empty one just wrapping it that you could use to set the second border.

提交回复
热议问题