用边框css概述div?

时间:2022-08-29 18:20:36

用边框css概述div?

I want to create a bounding box around the div with a grey border how do i do that Please help.

我想在div周围创建一个带有灰色边框的边界框我该怎么做请帮忙。

Please find below my code:

请在下面找到我的代码:

http://codepen.io/anon/pen/gyxpE

CSS:

  .box {
   border:2px solid #ECF0F1;
}

I want to surround the row with a white border and so on and so forth

我想用白色边框包围行,依此类推

Please find my code here : http://codepen.io/anon/pen/gyxpE

请在这里找到我的代码:http://codepen.io/anon/pen/gyxpE

1 个解决方案

#1


1  

I solved my issue:

我解决了我的问题:

Used the following CSS:

使用以下CSS:

   .box {
    width:100%;
    display:inline-block;
   border:2px solid #ECF0F1;
   margin:0;
}

Also removed all the margins from my CSS

还删除了CSS中的所有边距

#1


1  

I solved my issue:

我解决了我的问题:

Used the following CSS:

使用以下CSS:

   .box {
    width:100%;
    display:inline-block;
   border:2px solid #ECF0F1;
   margin:0;
}

Also removed all the margins from my CSS

还删除了CSS中的所有边距