html - Applying border in combination with boxing-size -


is possible decrease border-top width? i'm using boxing-size boxes aligned. want this:

enter image description here

but when apply border-top div there still space between te divs border doesn't top. enter image description here

any fix this?

see according image made example.

.main-container{  width:998px;    height:auto;    }    .box{  width:200px;    height:200px;    border-top:2px solid #b40505;    float:left;    background:#fefbdf;    margin:5px;  }
<div class="main-container">  <div class="box"></div>    <div class="box"></div>    <div class="box"></div>    </div>


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -