4 extra divs are inserted via JavaScript (well, jQuery actually) for each of your containers that you want shaped this way. These divs are positioned absolutely in the corners of it's parent, and they are styled accordingly as described in the link posted by Sven Bieder
Here is my solution, using the CSS shapes from Chris Coyier.
http://jsfiddle.net/dDejan/XSs9L/
4 extra divs are inserted via JavaScript (well, jQuery actually) for each of your containers that you want shaped this way. These divs are positioned absolutely in the corners of it's parent, and they are styled accordingly as described in the link posted by Sven Bieder
Look here. There you find all you need:
http://css-tricks.com/examples/ShapesOfCSS/
Edit In case the link goes lost:
CSS
You can compose this using absolutely-positioned
:before
and:after
elements using the CSS triangles technique.css: