开发者

Border inset on background fill - CSS

Hi need a css for the following mock up

Border inset on background fill - CSS

how to make b开发者_运维知识库order leaving 10 px on both ends on bottom,with a background fill.


For this to look right, you'll need nested div:

.inner {
    margin-right: 10px;
    background: #666;
    border-bottom: 2px solid #000;
    width: 200px; 
    padding-bottom: 10px;
}

.outer {
    width: 200px; 
    border: 10px solid #666; /* your grey fill */
    border-bottom: none;
}

Demonstration

Just mess with padding-top and padding-bottom on the .inner element to get the spacing you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜