cheat sheets.

$ cheat css_at_rules
@charset "ISO-8859-1"; 
Specify the encoding of the CSS file

@import url("printing.css") print
Import additional css file 'printing.css' for print media

@page :first { margin: 10cm; }
Sets content margins on the first 'page' to 10cm; see also :left and :right.

@media screen, print { body { font-size: 10pt } }
Set font size for body element for print and screen media

In CSS 3 Web Fonts Module:
  @font-face { 
   font-family: "My Helvetica"; src: url(my_helvetica.ttf) format("truetype"); 
  }
  Load the font "My Helvetica" from the URL.

In CSS 3 Namespaces Module:
  @namespace "http://www.w3.org/1999/xhtml";
  @namespace svg "http://www.w3.org/2000/svg";
  The default namespace sets to the XHTML URI, the 'svg' prefix maps SVG URI

In CSS 3 Paged Media Module:
  @page :left { @bottom-left-corner { content: counter(page); } }
  @page :right { @bottom-right-corner { content: counter(page); } } 
  Print page numbers on the outside bottom corners of (printed) pages.
Version 1, updated 154 days ago.
. o 0 ( edit | history )
( add new | see all )