=============================================================== Fully responsive and cross-browser compatible rectangles with slanted edges using pseudo-elements (as supposed to the "skew" transform). In contrast with the skew alternative, the method employed does not cause the rectangles' skewed sides to affect containing elements (such as text), and has minimal impact on surrounding elements in terms of positioning. The code affords full use of other CSS3 styling techniques for additional customization, such as CSS styling, hover states, transitions, etc.
Free for all developers to use and pass along - share the <3
See it in action at TacoBarCompany.com.
- Accommodate variable height based on content inside the rectangles
- Write SASS mixin for improved logic behind angle of slanted edges
- Extend capability for more than two rectangles
Fix cross-browser compatability issuesConvert CSS to SCSS
@author Daniel McClintock <[email protected]>
@uri http://about.me/McClintock
@license http://www.opensource.org/licenses/mit-license.html
@version 0.2.1
@created 08/28/13
@updated 01/20/15
A Pen by danielsmcclintock on CodePen