PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   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
Description 

Author

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: 14617 in United States United States
Week rank: 227 Down23 in United States United States Down

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:579
This week:0
All time:5,327
This week:488Up