>From my experience, .show directly changes the display style to be empty for the element and it then inherits the style from the style sheet.  So what I've done and would suggest is setting the style on the individual element to display='none' that way when show is called it changes the display of that element to empty and can then inherit the style from the style sheet which can be set to empty or block.

-Steven

On 9/1/06, stef <[EMAIL PROTECTED]> wrote:

My second question of the day - I have a div that i want to be hidden
untill an onclick event makes it appear (Grow). using body onload
Shrink works but then i see the shrink effect when the pageloads. if i
put display:none on the div in the stylesheet then the Grow effect does
not work.

what's the best way to make a div hidden by default?







--
Steven Osborn
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to