html - Create slanted / irregular shape div -
i want know if it's possible create type of div shape css3.
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; }
Comments
Post a Comment