HTML CSS examples for CSS Property:background
Rotate background in CSS to create parallelogram
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .foo {<!-- w ww. j a va 2 s . c om--> position: relative; width: 200px; height: 100px; background: blue; } .foo:after { content: ''; display:block; height:100px; width: 100px; -webkit-transform: skew(30deg, 0deg); background: red; left: 150px; position:absolute; } </style> </head> <body> <div class="foo"></div> </body> </html>