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
Post a Comment