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
??
Code:echo "<table>
<tr><td>Moneyy..............................$10</td></tr>
<tr><td>Sold.................................$5</td></tr>
</table>";
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 (.)?
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>
I think he wants something dynamic or something, to determine the ammount of periods or something......not quite clear what he wants
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks