Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

ADDING CUSTOM CODE


jilldiane_

Question

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 by jilldiane_
missed tags
Link to comment

2 answers to this question

Recommended Posts

  • 0

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;}

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...