jimfog Posted May 26, 2021 Share Posted May 26, 2021 I have a container with list items: <fieldset id="column_contai"> <ul> <li>maria</li> <li>anthi</li> <li>Nikos</li> <li>maria</li> <li>anthi</li> <li>Nikos</li> <li>maria</li> <li>anthi</li> <li>Nikos</li> <li>maria</li> <li>anthi</li> <li>Nikos</li> </ul> </fieldset> I want the height to be auto adjusted depending on the content and when it reaches a threshold(PX for example)...hide the rest and display a scrollbar. I know that the last one is a metter of overflow but I do not kbow how to achieve the first feature. Link to comment Share on other sites More sharing options...
Ingolme Posted May 26, 2021 Share Posted May 26, 2021 Setting max-height with overflow would do it, as long as your element is a block type. Link to comment Share on other sites More sharing options...
jimfog Posted May 26, 2021 Author Share Posted May 26, 2021 that is what I was expecting to hear...many thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now