collapse and expand the blank area in AEM | Community
Skip to main content
August 15, 2018
Solved

collapse and expand the blank area in AEM

  • August 15, 2018
  • 1 reply
  • 1002 views

I have a form where I have some fields hidden by default. On a check box checked action, they become visisble. When they are hidden , they create a lot of blank space. How can I collapse up the blank area when fields are hidden and expand it when the fields become visisble? I am using AEM 6.2 designer.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

Which property are you using for collapse? display or visible for toggling show hide.

display:none will not be available in the page and does not occupy any space. visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout. visibility:hidden preserve the space, whereas display:none doesn't preserve the space

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 15, 2018

Hi,

Which property are you using for collapse? display or visible for toggling show hide.

display:none will not be available in the page and does not occupy any space. visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout. visibility:hidden preserve the space, whereas display:none doesn't preserve the space

Arun Patidar