HTML CSS examples for CSS Widget:Menu
Make pointy fixed menu and buttons and skew
<html> <head> <meta charset="utf-8"> <title>Lorem i</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=0.5, user-scalable=yes"> <style> html {<!--from www .ja v a2 s.com--> font-size:63.6%; text-align:center; } body { text-align:center; margin:auto; padding-top:21px; } * { -moz-box-sizing:border-box; -ms-box-sizing:border-box; box-sizing:border-box; margin:0; padding:0; font-size:3rem; line-height:3.6rem; } .row { overflow:hidden; } .shape { position:relative; width:151px; height:71px; line-height:71px; margin:0 auto; background:Chartreuse; color:yellow; } .shape:before, .shape:after { -webkit-transform:rotate(-31deg); -moz-transform:rotate(-31deg); -ms-transform:rotate(-31deg); -o-transform:rotate(-31deg); transform:rotate(-31deg); width:51px; height:100px; background:blue; content:''; } .shape:before { position:absolute; bottom:0; left:0; -webkit-transform-origin:left bottom; -moz-transform-origin:left bottom; -ms-transform-origin:left bottom; -o-transform-origin:left bottom; transform-origin:left bottom; } .shape:after { position:absolute; top:0; right:0; -webkit-transform-origin:right top; -moz-transform-origin:right top; -ms-transform-origin:right top; -o-transform-origin:right top; transform-origin:right top; } </style> </head> <body> <div class="row"> <div class="shape"> Lorem </div> </div> </body> </html>