I want my box to look like this except for the left side to be blank:
.box{
width: 190px;
height: 90px;
display: inline-block;
padding: 5px;
margin: 50px;
}
#box4sides{
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 0 1px 1px #dbdbdb;
-webkit-box-shadow: 0 0 1px 1px #DBDBDB;
box-shadow: 0 0 1px 1px #DBDBDB;
background: white;
border: 1px solid #CDCDCC;
}
Here is my best attempt:
http://jsfiddle.net/7dpUA/2/
I found other examples of 3-sided boxes, but they were with either the top or bottom removed, and I haven’t been able to translate that to my case.
Create a wrapper div around the box with overflow as hidden and give a negative margin for the #box4sides div.
Check this jsFiddle : http://jsfiddle.net/7dpUA/22/
Is this what you need?