1 reply [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

Hi!
This is usualy done by JavaScript.(as on http://www.nestle.com or http://www.sacbee.com)
But how can the text size (defined in the css file) be changed "live" (dynamicaly) using a PHP script?

The text that need to be changed is in a table field, formated with standard HTML tags (h1,p,ul...).

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

How to change text size using CSS and PHP?

PHP is a server side scripting language, so you would have to reload the page (call the server) to make thiose sort of changes. It would be better to use Javascript and the DOM to change the text size.