How to create a border that fully covers the adjacent corners in CSS?

前端 未结 7 1915
闹比i
闹比i 2020-12-17 09:00

I have a div with a 1px border and I\'m trying to create a 3px border in another color to that div. I\'m using this code:

box {
  border: 1px solid #ffffd;
  b         


        
7条回答
  •  情歌与酒
    2020-12-17 09:29

    Try this:

    .box {
      outline: 2px solid #ffffd;
      margin-top: -2px;
      border-top: 10px solid #3F9BD0;
      min-width:100px;
      min-height:100px;
      float:left;
    }

提交回复
热议问题