Jquery expanding div?


#1

I have a long block of text that I’d like to truncate with a “more” button, and use jquery to expand the div when clicked. The javascript itself works, but when it slides open, it goes right over the top of everything else.

I’m pretty new to unbounce - is this even possible? Can you point me in the right direction? I’m sure it’s got something to do with positioning, but when I try overriding the styles, I still don’t get the right result.

Thank you!


#2

Unfortunately the answer here is that there is no easy way to do this. Elements on an Unbounce landing page are absolutely positioned and, as such, are not affected by the size or flow of other elements on the page. I am not sure how complex your page is but in theory it would b possible to re-position and resize other elements on the page as necessary but it would take quite a bit of fiddling around.

Apologies for not having an easy answer.

Justin