css - Bootstrap 3 and Haml - Adjust button width -


i have following haml code in rails 4 view, using bootstrap 3:

%div{:class => 'btn-group'}   %button{:class => 'btn btn-default btn-lg dropdown-toggle', :type => 'button', 'data-toggle'.to_sym => 'dropdown'}     %span{:class => 'caret'}     %span{:class => 'sr-only'} toggle dropdown   %ul{:class => 'dropdown-menu'}     %a{:class => 'close_task', :name => 'name', :href => '#' } close 

this renders incredibly small button, despite button class of btn-lg. i'm new haml, missing causing button small here?

add text button, css applied around it. example:

%button{:class => 'btn btn-default btn-lg dropdown-toggle', :type => 'button', 'data-toggle'.to_sym => 'dropdown'} mybutton

in case, there no text button. requires @ least 1 non blank character apply styling . above create large size bootstrap button text mybutton


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -