Here is the progress I've made so far: http://jsfiddle.net/F8An4/
I am attempting to achieve a design where there are borders on each side of the div, perfectly centered vertically and pointing towards the left and right sides of the screen. This style is quite common, but I am struggling to implement it successfully!
The desired look would be:
-----|DIV|------
CSS
div {
background: lightgreen;
height: 100px;
margin: 0 auto;
position: relative;
width: 200px;
}
div::after {
border-right: 10px solid black; // I'm unsure about this part.
content: "";
top: 0; left: 0; right: 0; bottom: 0;
position: absolute;
}
div::before {
content: "";
top: 0; left: 0; right: 0; bottom: 0;
position: absolute;
}
Any suggestions or solutions?