PDA

View Full Version : Jason's calendar:text and input box alingnment



kiwibrit
06-12-2007, 11:31 AM
1) Script Title: Jason's Date Input Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

3) Describe problem: Is there any way of aligning text and the input boxes without putting each into cells of a table?

On my HTML 4.01 strict test page (http://www.executive-express.co.uk/test.htm) the following code generates a two-line rendering (with different gaps between the lines in FF2 and IE7) for Test 1

<p><strong>Test 1 text</strong><script type="text/javascript">DateInput('Outdate', true)</script></p>


I had problems styling the location of the input boxes until I dropped text and the script into a table - Test 2

<table style="float:right">
<tr>
<td><strong>Test 2 text</strong></td><td><script type="text/javascript">DateInput('Outdate', true)</script></td>
</tr>
</table>

But is there any script I can change so that I do not have to use a table to style location? And yes, I know the result of the script is itself produces a table.