html - Create slanted / irregular shape div -


i want know if it's possible create type of div shape css3.

example

i'm aware can things such this using border's, there anyway borders in image (spanning entire top , bottom of div) - , bonus points, responsively (% widths?)

.cornered {   width: 160px;   height: 0px;   border-bottom: 40px solid red;   border-right: 40px solid white; } 

any links, fiddles, advice appreciated.

as mentioned in comment, have created skewed triangle (if remove padding css see), , added padding can't see tip of triangle

.cornered {     width: 160px;     height: 0px;     border-top: 60px solid transparent;     border-bottom: 60px solid transparent;     border-left: 280px solid blue;     padding:60px; } 

fiddle


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -