[Javascript] html question

Peter Brunone peter at brunone.com
Tue Mar 2 14:54:13 CST 2004


Chris,

   You're absolutely right; display defaults to block for table and about 30 other elements.

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/div.asp

Original Message:
>From: "Chris Tifer" <christ at saeweb.com>

>Perhaps a table's default css display is set to block. Try setting it to
>inline:
>
>style="display: inline;"
>
>----- Original Message ----- 
>From: "Peter Brunone" <peter at brunone.com>
>
>> Hi Iztok,
>>
>>    The only solution I've found for this is to (1) put both tables inside
>a larger table, or (2) use absolute positioning.
>>
>> Regards,
>>
>> Peter Brunone
>>
>> Original Message:
>> >From: "Iztok Polanic" <iztokp at amis.net>
>>
>> >Hi!
>> >
>> >I've come to a stupid problem which I can't solve. I have something like
>> >this:
>> >
>> ><table cellpadding="0" cellspacing="0">
>> ><tr>
>> ><td></td>
>> ></tr>
>> ></table>
>> ><table cellpadding="0" cellspacing="0">
>> ><tr>
>> ><td></td>
>> ></tr>
>> ></table>
>> >
>> >The problem is in IE, which adds a line feed between two tables.
>Everything
>> >works great in Mozilla 1.6. I have to apologize for discussing this
>question
>> >on javascript list.
>> >
>> >
>> >Bye,
>> >
>> >Iztok





More information about the Javascript mailing list