Yeah i understand that,
<table class="list">
<tr>
<td><input type="text" name="forename" value="Elmer" /></td>
<td><input type="text" name="surname" value="Fudd" /></td>
<td><input class="datepicker" type="text" name="date" value="01/02/2010" /></td>
<tr>
</table>
This is an example of the html i get back from the ajax call to insert on my page.
The css would be
.list { width:100%; }
.list input { width:100%;}
This will display the inputs filling their table cells.
The problem is that that after i've inserted the table i run this
jQuery('.datepicker').datepicker(); to add the jquery-ui calendar pop up (http://jqueryui.com/demos/datepicker/), as part of this it adds a button to the right of the input (which is now 100% of the cell) so the button get pushed down a line.
<table class="list">
<tr>
<td><input type="text" name="forename" value="Elmer" /></td>
<td><input type="text" name="surname" value="Fudd" /></td>
<td>
<input class="datepicker" type="text" name="date" value="01/02/2010" />
<button type="button" class="ui-datepicker-trigger">...</button>
</td>
<tr>
</table>
I can alter the html and css after the datepicker has done it's stuff but i'm unsure of the css to use to set the input to be 100% of the container minus the width of the button.
Cheers for replying and I hope that makes sense.