PHP Classes

Text Resizer: Resizes text on a page using styles and sessions.

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 579 All time: 5,327 This week: 488Up
Version License Categories
text-resizer 1.0GNU General Publi...HTML


This class allows your users to resize the text on your website.

Thanks to the cascading nature of CSS, a simple font-size percentage can be included in the head of any page to facilite this text resizer. It will not disturb any other attribute of your styles except the body's font size.

To use this, instantiate the class on any page where you want to use the resizer, call ProcessTextReset(), and reset the text size by passing query string variables: set_text=smaller, set_text=larger, or set_text=normal (the class uses sessions to remember values). The font size is reset to a percentage of the browser's default font size. See the example file for exact usage.

It requires PHP 4 or higher. Let me know if you find any problems.

Picture of kumar mcmillan
Name: kumar mcmillan <contact>
Classes: 7 packages by
Country: United States United States
Age: 45
All time rank: 14717 in United States United States
Week rank: 161 Down16 in United States United States Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file text-resizer-example.php Example example of usage
Plain text file text-resizer.class.php Class class source
Accessible without login Plain text file text-resizer.css Data style sheet

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,327
This week:488Up