Max height for ion - content

Hi All,

I am trying to implement a scrollable container within a page. I have implemented ion-content wrapped over an individual div.

It seems div is not able to apply max-length property. But when ion-content is removed max length is working properly.

Please refer to the pen -

Thank you,

Solve it by using ion scroll instead of ion content.

We can customize max length, by creating a CSS class with max length property and adding it to ion scroll element itself.

I have edited the codepen, please take a look.

Thank you.

1 Like