This CSS approach is effective in browsers like Chrome.
p.ex1 {
max-height: fit-content;
height: 250px;
border:solid 1px black;
overflow: auto;
}
The goal is to utilize the full height, allowing scrolling when necessary, while also adjusting the height to fit the content if it's small. But how can this be achieved in Firefox?
https://www.w3schools.com/cssref/tryit.asp?filename=trycss_dim_max-height
Chrome:
https://i.sstatic.net/KQi8Q.png