Home Home  

Project: User friendly fontsize

This project allows the user to change the fontsize of a webpage dynamically. It will become available as a symfony Plugin (Open Source). It's already available as symfony snippet.

The interface of this product consists of three buttons (Increase) (Decrease) (Default), the functions will immediately change the fontsize in the main content area. That includes h1, h2 etc.

The new fontsize can be stored as a cookie or if you like in a database, but you'll have to do some coding if you want to store it in a database.
The new fontsize is further on retrieved on loadtime of a page.

Some changes in the CSS are necessary:
1. You wil have to set a default fontsize in the main content area CSS-rule.
2. You will have to remove fontsize from all rules inside the main content area.

Note: If you want to use a fixed size for a certain part of the screen, then simply leave in the fontsize, it will not be resized then.

The product consists of:

  • component slot for user interface
  • javascript file
  • helper files
  • some symfony example files (make it easy to insert fontsize in a database)

The product makes it also very simple to change background, font and whatever else is found in a rule. Functions are already existing in the JS file.

Techniques used: PHP5, Javascript, CSS

Updated at: 2008-03-14

Search

 
 


Popular Tags



Info

About this site
Copyright
Contact
Sitemap


User options

Change font size (Help)


User friendly printing (Help)

 


Valid XHTML 1.0 Transitional