Skip to content

Instantly share code, notes, and snippets.

View nilahdad's full-sized avatar

Venkatarajan Govindarajan nilahdad

View GitHub Profile
2019-03-18.fancy-checkbox-and-radio-buttons
@jonkemp
jonkemp / css-calc.css
Created April 2, 2012 04:17
Cross Browser CSS Calc()
/* 1. write it out for older browsers */
/* 2. use the vendor prefix for webkit */
/* 3. use the vendor prefix for moz */
/* 4. include the un-prefixed version last */
#foo {
width: 200px;
width: -webkit-calc(50% - 100px);
width: -moz-calc(50% - 100px);
width: calc(50% - 100px);