div не больше его содержания
The solution is to set your div to display: inline-block.
Batman
The solution is to set your div to display: inline-block.