Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2005, 09:55 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to fill the line with a period-sign

hi!

How do I fill the rest of a line in a <td> with a period-sign (.)?

First line ............ kr. 100,-
Second line ........... kr. 200,-

No matter how long the text is, but fill the rest of <td>-width...

Thank you!

__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old May 30th, 2005, 12:53 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

use can write a javascript function, which will add required period-sign before displaying the contents in the <TD> tag.

Om Prakash
 
Old June 2nd, 2005, 08:25 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes......?

You see, I am a former thypograph (printing-biz)and would like to see proper tables or well organized info on the screen. As it used to or what I am used to see!


 
Old June 2nd, 2005, 07:56 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can see 2 way to do this:

<table>
<tr>
<td>Apple</td><td>Sold</td><td>£1</td>
</tr>
</table>

or if you really want to place dots (...) then use php but - since each letters uses a diffrent amount of pixels on the screen you will only get an approximative result.

if you're after well organised - go for the table and use <td width="100"> to generate field of diffrent lengh.

Hope this help
 
Old June 2nd, 2005, 08:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

FWIW
http://home.tampabay.rr.com/bmerkey/...t-leaders.html

(o<
//\ =^..^=
 
Old June 3rd, 2005, 09:41 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks mr. Meow. That is the answer to my question!






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print the /Period/@dateFrom elayaraja.s XSLT 3 July 29th, 2008 04:19 AM
heredoc with period Kevin Tough BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 July 3rd, 2007 11:57 AM
subtracting period columns in a matrix PhilVan Reporting Services 0 December 14th, 2006 09:57 AM
How do I execute a code every X period of time? Master_D PHP How-To 3 June 8th, 2004 10:10 AM
Calculate time period dtaya Access 1 July 26th, 2003 07:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.