Lining up 'equals' signs

L

Lazaroo

Hi,

I'm sticking together a new blog that uses a few mathematical equations. I'd
like to get the "equals" symbols lined up to make it look clearer. To do
this I've tried using a <table>, but this puts a big gap in my page just
before the table.

http://www.financialcharting.com/casino-sports-betting-strategies/

Does anyone know how I can remove the gap or maybe how I could align the
"equals" signs another way?

Thanks,

Anon

P.S. Please reply here as the email address is fake.
 
R

Roy Schestowitz

Lazaroo said:
Hi,

I'm sticking together a new blog that uses a few mathematical equations.
I'd like to get the "equals" symbols lined up to make it look clearer. To
do this I've tried using a <table>, but this puts a big gap in my page
just before the table.

Don't use tables for that. It's an overkill. You make your life more
miserable by adopting this habit.

It took me a while to understand what you were trying to achieve. Perhaps
the explanation was not sufficiently clear.
Does anyone know how I can remove the gap or maybe how I could align
the
"equals" signs another way?

For anything of this sort, when you want to indent properly, use fixed-sized
Thanks,

Anon

P.S. Please reply here as the email address is fake.

I hope it helps,

Roy
 
N

Nick Theodorakis

Hi,

I'm sticking together a new blog that uses a few mathematical equations. I'd
like to get the "equals" symbols lined up to make it look clearer. To do
this I've tried using a <table>, but this puts a big gap in my page just
before the table.

http://www.financialcharting.com/casino-sports-betting-strategies/

I'm not sure what you are trying to achieve with all those <br />
elements scattered in and around various table elements, but if you
eliminate them thusly:

<table>
<tr>
<td>$78.40</td>
<td>=</td>
<td>(bonus) - (deposit + bonus) * (wager requirement) * (expected
loss)</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>=</td>
<td>$100 - ($100+$100)*20*0.0054</td>
</tr>
</table>

You might be after the effect you are looking for.

It's arguable as to whether this qualifies as tabular data, but if you
talk fast enough, you might be able to convince the purist that it's
close enough to qualify. Alternatively, the <pre> element (styled
appropriately) might do the job.

Jukka seems to have written a page on the use of mathematical
expressions on the web:

<http://www.cs.tut.fi/~jkorpela/math/index.html>

Nick
 
L

Lazaroo

Roy and Nick,

Thanks for helping me with this problem. The <br />'s were added by the
blogger software that I use. But I tried out the <pre> solution and it's
all looking rosy now.

Thanks again,

Lazaroo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top