Enlarge text with a javascript link..how??

C

chris

Hi,

I need to add a text or image link which when click on will enlarge
the text on a web page to ither large or largest.

How can I do this, if its possible.

Chris
 
L

Lasse Reichstein Nielsen

I need to add a text or image link which when click on will enlarge
the text on a web page to ither large or largest.

<input type="button" onclick="document.body.style.fontSize = '120%'"
value="Larger">
<input type="button" onclick="document.body.style.fontSize = '144%'"
value="Largest">

Remeber to only use relative sizing on the font sizes you set
yourself, then a larger font size for the body element will be
inherited for the entire page.

/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top