Click to See Complete Forum and Search --> : HTML Fractions


paver
06-23-2006, 02:38 PM
Does anyone know HTML fractions? Specifically the sixteenths.

Thanks :)

elwell
06-23-2006, 02:52 PM
i think:
<sup>1</sup>/<sub>16</sub>

that might be the best you can get without HTML::fraction, server-side stuff

paver
06-23-2006, 02:58 PM
Interesting, it works but has a different format than &frac or &#. Thanks, I need all the fractions I can get for a preventive maintenance manual I am writing. :) :)

felgall
06-23-2006, 04:05 PM
Well using the <sup> and <sub> tags you can create any fraction you like. Only 1/2, 1/4 and 3/4 have actual characters to represent them and even then you need to be careful which encoding you choose to have them supported.

NogDog
06-23-2006, 04:17 PM
<sup>1</sup>&frasl;<sub>16</sub>

You might want to play around with font sizes, such as:

<span style="font-size: 80%"><sup>1</sup>&frasl;<sub>16</sub></span>

paver
06-30-2006, 11:38 AM
Thanks to all of you for your assistance. It is encouraging to know that there are still those who are willing to help others. Your advice has worked and made my project successful.