Skip to content
A simple javascript library for responsive font sizes.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
font-percent.js
font-percent.min.js

README.md

FontPercent

A simple javascript library for responsive font sizes.

FontPercent.js is extremely easy to use.

Step 1. Install

    Install manually or through Nuget:
    PM > Install-Package FontPercent

Step 2. Include reference.

	<script src="font-percent.min.js"></script>

Step 3. Set font sizes.

	<div fp="5%">This div uses inline font size. 5%</div>
						or
	<div data-fp="5%">This div uses inline font size. 5%</div>

Step 4. Initialize

	$(document).ready(function(){ 
		fontPercent.init(); 
	});

FontPercent.js also supports classes!

	<div class="fp-test1">This div is using the addClass function. 6%</div>
	fontPercent.addClass({className: 'fp-test1', size: '6%'});
You can’t perform that action at this time.