I would personally avoid using transformations and use the border property instead. This seems a lot cleaner to me (and also works in IE8).
Example: http://jsfiddle.net/F6DgA/5/
Note. To prevent the content inside the divs from floating over the edge, add something like * { box-sizing:border-box; } * { box-sizing:border-box; } and then add left / right divs.
CSS:
#wrap { width:300px; height:100px; margin:0 auto; position:relative; } #wrap div { position:relative; height:100%; float:left; } #one { background:#333; width:calc(50% + 15px); } #one:after { content:""; position:absolute; right:0; border-right:30px solid black; border-top:100px solid transparent; } #two { background:#000; width:calc(50% - 15px); }
source share