jilldiane_ Posted March 18, 2021 Share Posted March 18, 2021 (edited) Is it possible to add custom css and html and JS all in the same code block? i want to add js animation to a new html div, using css as well. i dont have a site yet just a general question. Edited March 18, 2021 by jilldiane_ missed tags Link to comment
ErikaT Posted March 18, 2021 Share Posted March 18, 2021 Yup, you can do that. When I was testing with my FAQ accordion I had divs, JS and CSS styling all working fine within a single code block on one page. I then hide all my code blocks (the space they use) by removing the padding site wide: //Remove Padding from ALL code blocks .code-block { padding: 0!important;} jilldiane_ 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment