Pertaining to html, how do I make a div container grow with the content instead of manually defining a width and height.
-
2021-02-05 02:18
Use the magical css property called "flex", it is really amazing
yourDiv{
display:flex;
}
Just make sure that the children are not position: absolute because this will not work with flex.