Closed salcode closed 8 years ago
The culprit here is WordPress is auto-inserting <br>
tags.
When the markup in WordPress is modified to:
<div class="well">
<h2>Button Styles</h2>
<button type="button" class="btn btn-default">Default</button> <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-danger">Danger</button> <button type="button" class="btn btn-link">Link</button>
</div>
the result is the same
When adding the following code in this theme, each button renders on a separate line (see left side of screenshot) while in a raw HTML document, they show up inline (see right side of screenshot)