I wish to create a [
and ]
bracket just with CSS. Is there a way to specify the top and bottom border (Without slicing the image) so it looks like a br
Not directly, but you can do this instead: HTML:
Div content
CSS:
.wrapper{
border-bottom: 2px solid #FF0000;
border-top: 2px solid #FF0000;
height: 100px;
width: 300px;
}
.stick{
border-left: 2px solid #FF0000;
height: 33%;
}
.empty{
height: 34%;
}
.content{ float: left }
.left{ float: left; height: 100%; }
.right{ float: right; height: 100%; }
.clear{ clear: both }
Demo: http://jsfiddle.net/Q8g4F/