Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
js
 
 
 
 
 
 
 
 

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.

About

Initial Commit

Resources

Releases

No releases published
You can’t perform that action at this time.