Jump to content

Creating dots (......)

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
Chan

Chan

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 204 posts
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
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
echo "<table>

<tr><td>Moneyy..............................$10</td></tr>

<tr><td>Sold.................................$5</td></tr>

</table>";


#3
Chan

Chan

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 204 posts
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 (.)?

#4
xXHalfSliceXx

xXHalfSliceXx

    Speaks fluent binary

  • Moderators
  • 1,694 posts
http://halfslice.hom...i.com/dots.html

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

Posted Image
Posted Image


#5
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I think he wants something dynamic or something, to determine the ammount of periods or something......not quite clear what he wants

#6
xXHalfSliceXx

xXHalfSliceXx

    Speaks fluent binary

  • Moderators
  • 1,694 posts

Sidewinder said:

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.

Posted Image
Posted Image