Why don't you take the stying off the spans, give the table 100% width and see what happens.

Bob


hi,

I have a table like this. Each table cell has two values which has put inside a span. I want this two values come horizontally... now its coming as two lines...

how can i show this values in a single line. I cant set any value as width for the TD since its dynamically created value. the TD shouls stretch according to the contents...

pls help.

thanks in advance..

<table>
<tr>
<td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td>
</tr>
<tr>
<td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td>
</tr>
<tr>
<td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td> <td><span class="price"> value</span><span class="discount">value</ span></td>
</tr>
</table>

.price, . discount  {
 display:block;
 float:left;
}
--
navii
---------------------------------------------------------
thanks and regards
Naveen Bhaskar Menon


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to