Lining up 'equals' signs

Discussion in 'HTML' started by Lazaroo, Mar 26, 2005.

  1. Lazaroo

    Lazaroo Guest

    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.
    Lazaroo, Mar 26, 2005
    #1
    1. Advertising

  2. Lazaroo wrote:

    > 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.

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


    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
    fonts like 'courier'. With CSS you should be able to use the <code> tag to
    achieve something more robust than specifying a font.

    > Thanks,
    >
    > Anon
    >
    > P.S. Please reply here as the email address is fake.


    I hope it helps,

    Roy

    --
    Roy Schestowitz
    http://schestowitz.com
    Roy Schestowitz, Mar 26, 2005
    #2
    1. Advertising

  3. On Sat, 26 Mar 2005 11:38:44 GMT, "Lazaroo"
    <> wrote:

    >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
    --
    Nick Theodorakis

    contact form:
    http://theodorakis.net/contact.html
    Nick Theodorakis, Mar 26, 2005
    #3
  4. Lazaroo

    Lazaroo Guest

    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.

    "Nick Theodorakis" <> wrote in message
    news:...
    > On Sat, 26 Mar 2005 11:38:44 GMT, "Lazaroo"
    > <> wrote:
    >
    >>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
    > --
    > Nick Theodorakis
    >
    > contact form:
    > http://theodorakis.net/contact.html
    Lazaroo, Mar 26, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward A Thompson
    Replies:
    4
    Views:
    529
    Tony Morris
    Feb 11, 2004
  2. RobM
    Replies:
    0
    Views:
    722
  3. Steve Pugh
    Replies:
    3
    Views:
    480
    Scott_From_PA
    Feb 11, 2005
  4. tshad
    Replies:
    16
    Views:
    3,736
    tshad
    Apr 3, 2005
  5. kditty
    Replies:
    8
    Views:
    504
    Beauregard T. Shagnasty
    Jan 26, 2006
Loading...

Share This Page