Sign in
Log inSign up
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 :)

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct