July 2010

  • Description of css em functionality

    Dragan Eror's picture
    in

    1em = (font-size value of current element)

    font-size: 1em; /*16px*/ /*16(default font size) x 1(our property) = 16*/
    font-size: 0.75em; /*12px*/ /*16(default font size) x 0.75(our property) = 12*/
    font-size: 0.833em; /*10px*/ /*12(parent font size) x 0.833(our property) = 10*/
    font-size: 1.8em; /*18px*/ /*10(parent font size) x 1.8(our property) = 18*/
    font-size: 1em; /*18px*/ /*18(parent font size) x 1(our property) = 18*/
  • -moz-box-shadow inset

    Dragan Eror's picture
    in

    Example of CSS3 multishadow

    1. -moz-box-shadow: 0 10px 16px rgba(66, 140, 240, 0.5), inset 0 -8px 12px 0 #6bf, inset 0 -8px 0 8px #48c, inset 0 -35px 15px -10px #7ad;

[ close ]
Help Upgrade the Web: Download Firefox 3.6