Dynadot โ€” .com Transfer

Help with Collapsing Div - CSS/Javascript

SpaceshipSpaceship
Watch
Impact
13
Im trying to make and expanding/collapsing DIV, i have got it working, the only problem is i cant work out how to have the divs collapesd by default on page load.

The author of the site i mention below trys to explain it but i dont think hes gone into detail enough, as other users are confused but the author hasnt seemed to answer the questions being posted

Would be great if any one can help, thxs

Site in question here:
http://www.dustindiaz.com/dhtml-expand-and-collapse-div-menu/
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Give all the DIV's a CSS class which has display: none;

Then when they click it or whatever to expand it, change it to display: block;
 
0
•••
works briliantly, thxs alot :)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back