0

How can I make a div not larger than its contents?

<div class="inline">
        This is a sample content
</div>
.inline
{
  	border: 2px solid #000000;
    display: inline-block;
}
RUN
add comment
Suggest a different solution or add another example