When you hide the div, the container/parent element should contract
automatically.

e.g. http://lazydragon.dreamhosters.com/test.html



Bruce-32 wrote:
> 
> I'm just learning, or trying to.
> I searched for this and thought the below would work.
> What I'm trying to do is if a show hide is being used and the dropdown is 
> long, using the hide function leaves the user way down the page and having 
> to scroll back up looking for where they were.
> I tried name but it didn't work?
> 
> <p>  
>  # Show the box </p>
> 
> <div id="slickbox" style="background: #eee; border: 1px solid #900;
> height: 
> 135px;">
> <p>This is the box that will be shown and hidden and toggled at your whim. 
> It has inline styles, which typically is a bad thing, but for the sake of 
> our demonstration, we'll let it slide, right?
> Lots more text here...
> &nbsp; #return Hide the box 
> </div>
> 
> Can this be done where close goes back up?
> 
> Thanks
> 
> Bruce Prochnau
> BKDesign Solutions 
> 
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Show-hide-return-tf3381196.html#a9411815
Sent from the JQuery mailing list archive at Nabble.com.


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

Reply via email to