+ 2
How to make div fit only itâs content without using inline-block?
I know I can use inline block to make a div no bigger than its contents, but thatâs causing other problems in my code. Is there any alternative so that the div can be no larger than its contents? Two back to back questions, hooray :)
1 Answer
0
probably u want
width(or height): max-content