Your problem is probably because your CSS converts the normally inline
span elements to floating block elements.


On Sun, April 27, 2008 10:41 am, Naveen Bhaskar wrote:
> 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