My styles are in a stylesheet, I just wrote this example to be as simple as 
possible.
Since I wrote my initial letter I recognized that the problem exists in 
Firefox2 only. IE works fine.

Nandi

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Aaron
Sent: Friday, November 17, 2006 3:26 PM
To: jQuery Discussion.
Subject: Re: [jQuery] width bug with hide and show

The problem here is the inline style which is considered bad practice.
The inline style is going to get overridden by the animation. Please
put your styles in a stylesheet and this will resolve the issue.

--
Brandon Aaron

On 11/17/06, Kolman Nándor <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi!
>
>
>
> I have the following HTML structure:
>
> <div>
>
>             <h1>title</h1>
>
>             <table style="width: 400px;">
>
>                         ...
>
>             </table>
>
> </div>
>
> <div>close/open</div>
>
>
>
> I make the table disappear/reappear by clicking the "close/open" div using
> hide('fast') and show('fast').
>
> After closing and opening, the table seems to forget the width setting.
>
>
>
> Is there a way to solve this problem other then setting the width each time
> table is shown?
>
>
>
> Nandi
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to