I have a div (blue border) contains content. If the content expands, it suddenly does not fit the div. How to I make the div extend so that the content is still contained?
Practically, consider the following: http://janke.tech/question.php Once I expand the collapsible, it goes beyond my nice blue border. Can I extend it?
So far display:table-cell might do the job. But this will destroy all the other formatting.
https://stackoverflow.com/questions/66683395/make-div-extend-to-fit-content March 18, 2021 at 09:04AM
没有评论:
发表评论