make div the size of the text inside

CSS
div {
display: inline-block;
}
Source

Also in CSS: