What you need to do is wrap your original DIV in another div that doesn’t have a border and has its background color as transparent. Set the containing DIV to have a height of 100px. Place your original DIV inside this one with a height of 0px. Your call should still pass the original (now inner) DIV element.

 

 

-Andrew Martinez

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Whitcraft, Jon
Sent: Thursday, April 27, 2006 3:35 PM
To: [email protected]
Subject: RE: [Rails-spinoffs] effect.SlideDown question

 

I have a div that is hidden on my page.  When I mouse over an image I want the div to scroll down to 100px tall.  I can get it to work when the div is initially shown on the page at 100px tall but when I start it out at 0px tall it doesn’t do anything and the only code that you can pass is percentages not pixels to the effect.  Is there a way to tell it that I want it to go to 100px  instead of 100% so that way I can start out by having it at 0px tall.

 

Thanks,

 

Jon Whitcraft
Indianapolis Motor Speedway
[EMAIL PROTECTED]

Phone: (317) 492-8623 :: Fax: (317) 492-6419

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martinez, Andrew
Sent: Thursday, April 27, 2006 2:51 PM
To: [email protected]
Subject: RE: [Rails-spinoffs] effect.SlideDown question

 

Just to clarify:

 

            Are you trying to make a DIV element that is hidden, slide down 100px and then show when it finishes moving? Or are you trying to have a DIV element slide down 100px and fade into visibility while moving?

 

…can you take the time to actually re-read what you type?

 

-Andrew Martinez

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Whitcraft, Jon
Sent: Thursday, April 27, 2006 2:46 PM
To: [email protected]
Subject: [Rails-spinoffs] effect.SlideDown question

 

Hello,

 

I want to have my box that I’m sliding down hidden when I start and then slidedown to 100px. What is the best way to do this?  I don’t see anything on the wiki about it.

 

Thanks,

 

Jon Whitcraft
Indianapolis Motor Speedway
[EMAIL PROTECTED]

Phone: (317) 492-8623 :: Fax: (317) 492-6419

 

********************

********************

This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted.

********************

********************

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to