View Full Version : Square Root
Justin Ba
07-24-2002, 05:43 PM
im trying to display an equation like
z = square root (x + y)
ive tried
z = & radic; x + y
(without the space after &)
but the sign only goes over the x
any hints?
You can easily do this with presentation MathML:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi> z </mi>
<mo> = </mo>
<msqrt>
<mi> a </mi>
<mo> + </mo>
<mi> b </mi>
</msqrt>
</math>
Put a <?xml version="1.0"?> at the top of that, save it as example.xml, and view it in NS7 or a recent Mozilla, or in Amaya to see.
You can also <embed> the document in IE through use of the "MathPlayer" plugin, or you can try the Universal MathML Stylesheet. :)
brothercake
07-24-2002, 07:24 PM
You could just make a gif, or use table cells to lay it out :p
adios
07-24-2002, 09:46 PM
don't quote me:
<html>
<head>
<title>untitled</title>
<style type="text/css">
#radish1 {font:200 16px monospace;position:relative;left:1px;top:-1px;}
#radish2 {font:200 16px monospace;border-top:1px black solid;}
#radishbox {width:130px;padding:3px 2px 2px 2px;border:3px tan outset;background:tan;}
</style>
</head>
<body>
<div id="radishbox">
<span id="radish1">z = &radic;</span><span id="radish2">x + y</span>
</div>
</body>
</html>
Justin Ba
07-24-2002, 10:03 PM
Adios, you rock :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.