I have a Bootstrap alert and I want the width to fit the content. In the Bootstrap documentation it appears the default is to have 100% width. What is the most robust way to make the alert exactly fit its content on all screen sizes?
<div class="container">
<div class="alert alert-danger">
My short alert message.
</div>
</div>