BluSkye218 Posted April 23, 2020 Share Posted April 23, 2020 Hello, I am using collapsible divs on my website using this: https://www.w3schools.com/howto/howto_js_collapsible.asp, but I would like to have the divs NOT hidden by default, how would I change the javascript? Thanks in advance! - Lauren Link to comment Share on other sites More sharing options...
JMRKER Posted April 26, 2020 Share Posted April 26, 2020 One line change in the CSS section .content { padding: 0 18px; display: block; /* changed from none; */ overflow: hidden; background-color: #f1f1f1; } Link to comment Share on other sites More sharing options...
ishan_shah Posted December 7, 2020 Share Posted December 7, 2020 You can also archive this by removing that display css property. Link to comment Share on other sites More sharing options...
Recommended Posts