简体   繁体   中英

Outline div with a border css?

在此处输入图片说明

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

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

I solved my issue:

Used the following CSS:

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

Also removed all the margins from my CSS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM