I want to create a couple of buttons in the header of our Help file that when clicked, will increase or decrease the font size of the topic.
Has anyone done something like this in H&M? I've tried looking on the 'net for some code samples, but I can't get anything to work.
Thanks!
Code for font size increase/decrease?
Moderators: Alexander Halser, Tim Green
- Dean Whitlock
- Posts: 577
- Joined: Thu Sep 01, 2005 5:59 pm
- Location: Thetford Center, Vermont USA
- Contact:
Hi Capt.,
The only think I can think of is to have the buttons be links to alternate pages that have the same text styled in a larger style, or that use a different topic template that has been edited to add CSS codes for larger fonts. If you embedded the topic contents from the original topic, you would only have to edit it in one place, but you couldn't change the styles on the text. Using the alternate topic template might allow you to embed and restyle the size with CSS - not sure about that, but it's worth a try.
Good luck, and let us know what you come up with.
Dean
The only think I can think of is to have the buttons be links to alternate pages that have the same text styled in a larger style, or that use a different topic template that has been edited to add CSS codes for larger fonts. If you embedded the topic contents from the original topic, you would only have to edit it in one place, but you couldn't change the styles on the text. Using the alternate topic template might allow you to embed and restyle the size with CSS - not sure about that, but it's worth a try.
Good luck, and let us know what you come up with.
Dean
-
- Posts: 289
- Joined: Wed Oct 18, 2006 3:17 am
- Location: Brisbane, Australia
- Contact:
Re: Code for font size increase/decrease?
The code here:CaptNink wrote:Has anyone done something like this in H&M? I've tried looking on the 'net for some code samples, but I can't get anything to work.
http://www.white-hat-web-design.co.uk/a ... ntsize.php
works fine.
Cheers,
Malcolm.
- Tim Green
- Site Admin
- Posts: 23186
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Malcolm, Nink,
Note that for this to work you may have to change the font coding setting for your HTML output in Project Properties > HTML Help/Browser-based Help/HTML Export Options. Right-click on the coding option for a description of what the different settings do.
Note that for this to work you may have to change the font coding setting for your HTML output in Project Properties > HTML Help/Browser-based Help/HTML Export Options. Right-click on the coding option for a description of what the different settings do.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 289
- Joined: Wed Oct 18, 2006 3:17 am
- Location: Brisbane, Australia
- Contact: