how to keep the content inside a div not grow the entire width of parent code example Example: make div the size of the text inside div { display: inline-block; }