micropatterns

From Microformats Wiki
Revision as of 22:10, 22 January 2007 by Chris Messina (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Micropatterns are snippets of semantic XHTML that can be used for consistency across websites.

Image alignment

From various WordPress themes, including K2.

img.alignleft {
  float:left;
  margin:0.5em 1em 0.5em 0;
}
img.alignright {
  float:right;
  margin:0.5em 0 0.5em 1em;
}
img.center {
  display:block;
  margin:0.5em auto;
  text-align:center;
}