Making button go full-width?

user1438003 picture user1438003 · Aug 21, 2012 · Viewed 323.2k times · Source

I want a button to take up the full width of the column, but having difficulties...

<div class="span9 btn-block">
    <button class="btn btn-large btn-block btn-primary" type="button">Block level button</button>
</div>

How do I make the button as wide as the column?

Answer

Layke picture Layke · Nov 4, 2013

Bootstrap v3 & v4

Use btn-block class on your button/element

Bootstrap v2

Use input-block-level class on your button/element