Initial Commit
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
.gitattributes
.gitignore
README.md
index.html
screenshot.png

README.md

jMonospace

##What is jMonospace?

jMonospace is a jQuery plugin that generates lines of monospaced text with any font.

##Features

  • Works with any font
  • Set spacing between characters

###Compatibility

Chrome, Safari, Firefox, Opera, IE7+, IOS4+, Android, windows phone.

##Usage

####Javascript

Include jquery and the jMonospace script in your head tags or right before your body closing tag.

<script src="js/jquery.js"></script>
<script src="js/jMonospace.js"></script>

####HTML

Simply add a class or id to the element that you would like monospaced.

<p class="jMonospace">
   [ whatever content to monospace ]
</p>

####Fire the plugin

Bind the jMonospace behaviour on every link with any id or class.

$('.jMonospace').jMonospace({ spacing: 1 });

###Documentation

####Default option:

spacing: 0   // Integer: Distance between characters in pixels (can be positive or negative)

Creator

Richard McMaster

License

jMonospace is available under the MIT license.