css element fit content code example
Example 1: make div the size of the text inside
div {
display: inline-block;
}
Example 2: css div width fit content
display: inline-block;
div {
display: inline-block;
}
display: inline-block;