dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: HTML Fractions

  1. #1
    Join Date
    Jun 2006
    Location
    texas
    Posts
    3

    HTML Fractions

    Does anyone know HTML fractions? Specifically the sixteenths.

    Thanks

  2. #2
    Join Date
    Jul 2003
    Posts
    84
    i think:
    PHP Code:
    <sup>1</sup>/<sub>16</sub
    that might be the best you can get without HTML::fraction, server-side stuff
    Last edited by elwell; 06-23-2006 at 03:57 PM.

  3. #3
    Join Date
    Jun 2006
    Location
    texas
    Posts
    3
    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.

  4. #4
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    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.
    Stephen

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    22,208
    Code:
    <sup>1</sup>&frasl;<sub>16</sub>
    You might want to play around with font sizes, such as:
    Code:
    <span style="font-size: 80%"><sup>1</sup>&frasl;<sub>16</sub></span>
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  6. #6
    Join Date
    Jun 2006
    Location
    texas
    Posts
    3
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center