micropatterns: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
 
m (removed presentational class names which are an anti-pattern, please read semantic-class-names)
Line 2: Line 2:


== Image alignment ==
== Image alignment ==
From various WordPress themes, including K2.
<pre>img.alignleft {
  float:left;
  margin:0.5em 1em 0.5em 0;
}</pre>
<pre>img.alignright {
  float:right;
  margin:0.5em 0 0.5em 1em;
}</pre>
<pre>img.center {
  display:block;
  margin:0.5em auto;
  text-align:center;
}</pre>

Revision as of 22:58, 22 January 2007

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

Image alignment