|
Admin
|
 |
« on: March 04, 2002, 02:07:00 AM » |
|
I want to show some mathematical equations on a web site. How can I do that to make it look neat and line up the decimal places?
For example, I want it to look like this:
123.12345 + 123.12345 ------------- 123.12345
with everything lined up correctly and a nice, neat line, all that. Ideas??
|
|
|
|
|
Logged
|
|
|
|
|
Brian
|
 |
« Reply #1 on: March 04, 2002, 04:45:00 PM » |
|
i would think to use tables. just use different cells for each part of the number, that way all the decimals will be lined up.
-Brian
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Admin
|
 |
« Reply #3 on: March 04, 2002, 08:51:00 AM » |
|
you're awesome, thanks!!! 
|
|
|
|
|
Logged
|
|
|
|
|
stephan
Guest
|
 |
« Reply #4 on: March 04, 2002, 04:53:00 PM » |
|
Try using a font where all the letters are evenly spaced.
I think this is called a "proportional" font.
Like the one used in msdos for example.
Then all your numbers will line up.
|
|
|
|
|
Logged
|
|
|
|
|
Admin
|
 |
« Reply #5 on: March 09, 2002, 12:57:00 AM » |
|
ok I have the numbers and decimals all lined up. How do you make the little line at the bottom (equals)?
|
|
|
|
|
Logged
|
|
|
|
|
Brian
|
 |
« Reply #6 on: March 09, 2002, 01:40:00 AM » |
|
if you look at what i made, there are actually two tables. i made the first table for the numbers you are adding or subtracting or whatever, then i put the line by using the hypen a whole lot, if you want you could also make a image and put it there, then under the hypens i put a new table with the same dimensions and put in the final numbers. i'm not at my home computer right now, but when i get there i'm going to do some more research and get back to you. -Brian 
|
|
|
|
|
Logged
|
|
|
|
|
stephan
Guest
|
 |
« Reply #7 on: March 10, 2002, 07:39:00 PM » |
|
Just use an underscore e.g. _________
|
|
|
|
|
Logged
|
|
|
|
|
Admin
|
 |
« Reply #8 on: March 10, 2002, 09:27:00 PM » |
|
Thanks, I decided just to make the entire thing an image. Using an underscore or a dash doesn't look very good, makes the spacing get all funky so the numbers all line up but then there's a big space before the underscore. The dash is just that and is not a solid line.
Thanks for all your help!
|
|
|
|
|
Logged
|
|
|
|
|
kahlan
|
 |
« Reply #9 on: March 17, 2002, 12:21:00 PM » |
|
You could have created a cell thats only 1 pixel high and the whole width of you calculation with a bgcolor of whatever you wanted your line to be.
|
|
|
|
|
Logged
|
|
|
|
|
Brian
|
 |
« Reply #10 on: March 17, 2002, 12:33:00 PM » |
|
why didn't i think of that.... i feel stupid all of the sudden. -Brian
|
|
|
|
|
Logged
|
|
|
|
|
kahlan
|
 |
« Reply #11 on: March 17, 2002, 01:06:00 PM » |
|
lol... don't feel stupid, you'll remember this for next time. I use the 1 pixel high (or wide) table a lot for separating things with lines, thats why I thought of it 
|
|
|
|
|
Logged
|
|
|
|
|
Admin
|
 |
« Reply #12 on: March 17, 2002, 10:07:00 PM » |
|
What a great idea
THANKS!
|
|
|
|
|
Logged
|
|
|
|
|