All,

I noticed a difference with fadeIn() over show() that forced me to use
show() when I wanted to use fadeIn()...

I have some elements in a div, and the background color of the div is
different from the rest of the page so you know that these elements
are grouped together. When the page loads, the display property of the
elements is set to none. I use jQuery to conditionally display the
elements when the DOM is ready and attach event handlers to other
elements to conditionally hide and display others.

When I use hide() or show() the height and width of the surrounding
div are adjusted to the appropriate size to fit the elements that are
visible. However, when I use fadeIn() the surrounding div does not
change and elements toward the bottom appear to "spill over" the div
in which they were meant to appear.

Regards,
Dan

Reply via email to