accrington Posted December 26, 2008 Report Posted December 26, 2008 How to create a fraction in a web page? I know only this way: ?. How to get a horizontal line in an elegant way? Could you, please, suggest a link where to read about it? Thanks. :-) Quote
administrator Posted December 26, 2008 Report Posted December 26, 2008 How to create a fraction in a web page? I know only this way: ?. How to get a horizontal line in an elegant way? Could you, please, suggest a link where to read about it? Thanks. :-) Hi, You just wrote 1/2 in the post above and ... it looks pretty good to me. I suppose you could create a ... around the 1/2 and then use CSS to change the font and text properties. You know, make it bold, all caps etc .... Stefan Quote
accrington Posted December 26, 2008 Author Report Posted December 26, 2008 Hi Stefan, Thank you. It works when we have 1/2 and 1/3. But if I need something like this: a/b + c/d = (a + c)/ d. Or, let's say 2 and 1/3... or 11/4 = 2 3/4 etc ... You see, this is very nice: or ∑i=0∞ xi when you need a Sum. But it doesn't work with fractions. It's very simple in Word > Object > Microsoft Equation 3.0. I am wondering - do I have to make everything like .gif? Boring. I hope that there should be something nice, as you said: create a ... around everything. Thanks a lot and Happy Boxing Day! accrington Quote
Wickham Posted December 26, 2008 Report Posted December 26, 2008 Create an image for them and reduce to a small size, assuming you haven't got too many. Quote
monkeysaurus Posted December 26, 2008 Report Posted December 26, 2008 (edited) The proper, semantic way to mark up mathematics is to use....MathML! It is a recommendation of the W3C, and it is certainly the way to go for more complex stuff. Wikipedia has an excellent article with examples here. Predictably, IE only supports MathML with a plugin, so depending on your audience, this may or may not be the best solution. Edited December 26, 2008 by monkeysaurus Quote
accrington Posted December 26, 2008 Author Report Posted December 26, 2008 Thank you, monkeysaurus! MathML looks very good for my task. I've found this page http://www.cs.tut.fi/~jkorpela/math/#fractions, read about it, and I've got completely lost. Now, with your help it looks crystalclear. Quote
administrator Posted December 26, 2008 Report Posted December 26, 2008 accrington, Your sheep avatar is scaring me for some reason. Stefan Quote
monkeysaurus Posted December 26, 2008 Report Posted December 26, 2008 (edited) You're welcome Accrington. Hope it's useful. And to the HTML zealots here...you need XHTML for this one! ... ... ... ... ... ... (I think) Edited December 26, 2008 by monkeysaurus Quote
accrington Posted December 27, 2008 Author Report Posted December 27, 2008 Stefan, Why? They are so cute and so curious. maths and counting sheep... monkeysaurus, Thank you once more, even if I do not understand those dots. But it is ok with XHTML. At least I know where to read about it. I hope I will manage MathML for my webpage. Otherwise I could follow Wickham's suggestion. accrington Quote
LSW Posted December 28, 2008 Report Posted December 28, 2008 I would have said that too... but the Monkey beat me! Quote
jlhaslip Posted January 14, 2009 Report Posted January 14, 2009 (edited) Place the numerator in a superscript tag and the denominator in a subscript tag 2/11 Edited January 14, 2009 by jlhaslip Quote
jlhaslip Posted January 14, 2009 Report Posted January 14, 2009 For Forums allowing the sup and sub bbcodes, it would look like this: 2/11 Not sure if it will work on the new Forum set-up. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.