Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 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 Antwort
0
probably u want
width(or height): max-content