Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a bulma button goes full width?

I am using [email protected] css framework

I have submit button within a form as follows

... <!--Submit button--> <div class="columns">     <div class="column is-full">         <button type="submit" class="button is-primary">             <span class="icon"><i class="fa fa-sign-in"></i></span>             <span>Login</span>         </button>     </div> </div> ... 

The result is the following

enter image description here

How can I make the button goes full-width ?

like image 459
ira Avatar asked Jan 06 '17 12:01

ira


People also ask

How do you make a button occupy full width?

Creating a full-width button is very simple and easy, just take an <button> element and make it a block element with display: block property and add width: 100% to it. You can use other CSS properties to customize it.

Is Bulma mobile first?

Every element in Bulma is mobile-first and optimizes for vertical reading, so by default on mobile: columns are stacked vertically. the level component will show its children stacked vertically. the nav menu will be hidden.


2 Answers

Add the class is-fullwidth

<button type="submit" class="button is-primary is-fullwidth">       <span class="icon"><i class="fa fa-sign-in"></i></span>       <span>Login</span> </button> 
like image 168
Manu Obre Avatar answered Sep 21 '22 05:09

Manu Obre


is-fullwidth did not work for me, but is-overlay did!

like image 35
Pauls Bebris Avatar answered Sep 20 '22 05:09

Pauls Bebris