WebSite X5Help Center

 
Steven B.
Steven B.
User

Page Length Auto-Adjust to Accordion  en

Autor: Steven B.
Visited 2163, Followers 2, Udostępniony 0  

I am using a Dreamweaver plugin to add accordion content to several pages on my site. I am inserting an HTML widget in X5.

My problem is that X5 requires that I designate a length for the HTML widget. I want the page to adjust its length as accordion content opens and closes. If I set a fixed length, the page either has a lot of blank space (to accommodate the accordion lengthening when it opens), or the accordion content overruns the main page area.

If anyone knows how to set the page length to auto-adjust as the accordion opens, I would be very grateful!

Posted on the
4 ODPOWIEDZI
Jamie B.
Jamie B.
User

Here you go

<script type="text/javascript">
$(document).ready(function(){
$('.imHTMLObject').css({
'height': '100%',
'overflow': 'visible'
});
});
</script>

add this above your code in the html widget, set the widgetheight to 0 and then your done

thanks

Czytaj więcej
Posted on the from Jamie B.
Steven B.
Steven B.
User
Autor

Thank you!

Czytaj więcej
Posted on the from Steven B.
CARLOS AMARAL
CARLOS AMARAL
Moderator
Najlepszy Użytkownik miesiąca ESNajlepszy Użytkownik miesiąca PT

Great!

Tnks!! +1

Czytaj więcej
Posted on the from CARLOS AMARAL
Jamie B.
Jamie B.
User

glad to help.

regards

jamie

Czytaj więcej
Posted on the from Jamie B.