Fraction Characters in HTML - 1/2, 5/8, 3/4 in HTML? (Posted by EJM)

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I think you use the special code &frac followed by the two mumbers (one on top, one on bottom), for example:
½
Should give you:
½

If I got it right, it should work above. I'm not sure about fractions with more than 2 numbers though..
Smiling

They have: 5,633 posts

Joined: Jan 1970

Is there a way to get the browser to display fractions? I know that some fonts have special fraction characters, but I want to use a universal font.

They have: 5,633 posts

Joined: Jan 1970

Thanks for that John. I have been trying to find out the same thing as EMJ for a while now. In the past I have just used 1/2 but ½ is much better.

----------
[email protected]
http://go.to/hass

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Sure thing. Smiling

I agree, the ½ looks more readable as a fraction. Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.