Home > Uncategorized > CSS Techniques

CSS Techniques

April 8, 2010

1. Replace all css format

background-color:#F00 !important;

2. CSS Media

@media print {
body { font-size: 10pt }
}
@media screen {
body { font-size: 13px }
}
@media screen, print {
body { line-height: 1.2 }
}

3. CSS for XML

XML Sample

XML Sample

INSTRUMENT { display: inline; color:#F00;}
ARTICLE, HEADLINE, AUTHOR, PARA { display: block }

4. CSS hack for IE browser

*html div#test { background-color:#6F9;}/* Hack for IE6 */
*+html div#test { background-color:#C93;} /* Hack for IE7 */

CSS hack for IE8

CSS hack for IE8

Advertisements
%d bloggers like this: