Making button go full-width

Bootstrap v2

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

Bootstrap v3 and v4

Use btn-block class on your button/element

This is a quick and dirty example. Basically, combine “display: block” with “width: 100%” in your CSS. I tested in IE9 and Chrome 21.

<html>

style="background-color: black"> style="display: block; width: 100%;">button
</html>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: