Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2012 07:39
Show Gist options
  • Save anonymous/3357409 to your computer and use it in GitHub Desktop.
Save anonymous/3357409 to your computer and use it in GitHub Desktop.
CSS flipping tools
/**
* CSS flipping tools
*/
/* Original code */
.class {
padding: 1px 2px 3px 4px;
margin-right: 3em;
background: url(image.gif) no-repeat right center;
margin-bottom: 20px;
color: #222;
}
/* Standard tools (e.g. http://cssjanus.commoner.com/) */
.class {
padding: 1px 4px 3px 2px;
margin-left: 3em;
background: url(image.gif) no-repeat left center;
margin-bottom: 20px; /* this is unneeded in a drupal RTLed file */
color: #222; /* this is unneeded in a drupal RTLed file */
}
/* CSS Flipper for Dupal */
.class {
padding: 1px 4px 3px 2px;
margin-left: 3em;
margin-right: auto; /* This was added by the flipper to reset the original margin-right */
background: url(image.gif) no-repeat left center;
}
<!-- content to be placed inside <body>…</body> -->
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment