suzie Posted March 30, 2010 Report Share Posted March 30, 2010 Dear Friends,In my website, I want to add the option to let the visitor resize the font size of the article he is reading, I want to add + and - button,the article is in div "body-content", it contains 2 titles, a date the text and the e-mail, ( h1, h2, h3, h4, h5)<div class="body-content"> <h1>$title1</h1> <h2>$title2</h2> <h5>$date</h5> <h3>$text</h3> <h4><a href="mailto:$email">$email</a></h4> </div> I want that when the user clicks on + to increase the font size of all the content of the Div body-content and same for -, it decrease it.is there a javascript function to do that, please need help...Best Regards,Suzie... Link to comment Share on other sites More sharing options...
ShadowMage Posted March 30, 2010 Report Share Posted March 30, 2010 You can certainly write one. You would need to use the fontSize property of the DOM. Link to comment Share on other sites More sharing options...
suzie Posted March 31, 2010 Author Report Share Posted March 31, 2010 You can certainly write one. You would need to use the fontSize property of the DOM.Thanks a lot,it is done, I used the propertygetElementsByTagNameandstyle.fontSizeThanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now