Skip to content

Instantly share code, notes, and snippets.

@Soraph
Created September 25, 2013 08:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Soraph/6696724 to your computer and use it in GitHub Desktop.
Save Soraph/6696724 to your computer and use it in GitHub Desktop.
Using generic font-family to have consistency across operative systems http://www.w3.org/TR/CSS2/fonts.html#generic-font-families
pre {
font-family: monospace;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
/*
padding: XX;
margin: XX;
background: #xxxxxx;
other fancy stuffs
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment