Closed Thread
Results 1 to 6 of 6

Thread: Creating dots (......)

  1. #1
    Chan is offline Programming Professional
    Join Date
    Jun 2006
    Posts
    205
    Rep Power
    0

    Creating dots (......)

    How can I fill a table space with periods?

    For instance I have:

    Money (several spaces) $10
    Sold (several spaces) $5


    how could I fill the <td> where several spaces is with ....

    Money..............................$10
    Sold.................................$5

    ??

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Code:
    echo "<table>
    <tr><td>Moneyy..............................$10</td></tr>
    <tr><td>Sold.................................$5</td></tr>
    </table>"


  4. #3
    Chan is offline Programming Professional
    Join Date
    Jun 2006
    Posts
    205
    Rep Power
    0
    well, its not that easy (I wish it were).
    I don't know the amount of space that is going to be between the variables such as Sold and Money but I want the money field to be left aligned and on the same space.

    Var1 ............................................. $10
    Var2 ..............................................$5
    V3................................................ ....$27,000

    Is there anything in PHP that lets me fill a space with a period (.)?

  5. #4
    Join Date
    Oct 2006
    Location
    Hendersonville, NC
    Posts
    1,700
    Blog Entries
    3
    Rep Power
    0
    http://halfslice.home.mchsi.com/dots.html

    Code:
    <center>
    <table width="15%" border="0" class="data">
     <tr><th align="right"><font color="#FF6600"><u>Item</u></font></th><th></th><th align="left"><font color="#FF6600"><u>Pricing</u></font></th></tr>
     <tr><td ALIGN="right">Money</td><td ALIGN="center">........................</td><td ALIGN="left">$10</td></tr>
     <tr><td ALIGN="right">Sold</td><td ALIGN="center">........................</td><td ALIGN="left">$5</td></tr>
    </table>
    </center>
    
    </body>
    </html>


  6. #5
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    I think he wants something dynamic or something, to determine the ammount of periods or something......not quite clear what he wants

  7. #6
    Join Date
    Oct 2006
    Location
    Hendersonville, NC
    Posts
    1,700
    Blog Entries
    3
    Rep Power
    0
    Quote Originally Posted by Sidewinder View Post
    I think he wants something dynamic or something, to determine the ammount of periods or something......not quite clear what he wants
    From what he has in detail, I answered it. But if he wants something to automatically generate a form for him. Well thats different.


Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating a bmp
    By eafkuor in forum Java Help
    Replies: 0
    Last Post: 12-11-2010, 10:15 AM
  2. Creating GUI
    By Roman Y in forum Java Help
    Replies: 4
    Last Post: 09-07-2010, 06:08 PM
  3. ..:: Creating new row ::..
    By bahrain in forum Visual Basic Programming
    Replies: 5
    Last Post: 01-23-2009, 02:19 PM
  4. Creating an .EXE?
    By Kuroachia in forum C and C++
    Replies: 6
    Last Post: 11-26-2008, 08:58 AM
  5. Tutorial paint dots(simple version)
    By Turk4n in forum Java Tutorials
    Replies: 6
    Last Post: 06-25-2008, 11:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts