My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Issue while fixing the height of DIV element.

Issue while fixing the height of DIV element.

Akshay Jain's photo
Akshay Jain
·Jan 7, 2016

I want a div with minimum height of 290PX. When the content inside the div exceeds the height of 290px, the DIV should increase the height to 600PX, If the content still exceeds 600PX, add a scrollbar. :)

The content will arrive dynamically from backend.

Summary: Fix height to 290PX or 600Px depending upon content. Codepen and jsFiddle will be appreciated :)