The script works but for some reason the .hide class with css display:none property does not collapse down, so there is existing space where the hidden div's where located. It looks more like visibility:hidden I rebuit this in VS and it works correctly but not in HubSpot. any advise would be helpful. Thanks.
Display:none not working, looks like visibility:hidden
SOLVE
It's because you've given the wrapping #product_content a specific height with inline styling (height: 2199px) and each .item_conteiner is set to absolute positioning (also inline on each element). Remove the height on the parent element and remove the absolute positioning and it should work.
Display:none not working, looks like visibility:hidden
SOLVE
It's because you've given the wrapping #product_content a specific height with inline styling (height: 2199px) and each .item_conteiner is set to absolute positioning (also inline on each element). Remove the height on the parent element and remove the absolute positioning and it should work.
Display:none not working, looks like visibility:hidden
SOLVE
@piersg Thank you again for the reply.I don't have any inline styling in this custom module so I'm not sure where it's coming from. What should I set the # product_content height to? And what would you suggest I apply to the .item_conteiner position?
Display:none not working, looks like visibility:hidden
SOLVE
@piersg I figured it out, I had to add height: auto !important; to both parent div's and add to position: static !important; to the .item_conteiner's. Thanks again for the help!