css - Adding space between two buttons -


i using haml.erb file. add space between 2 buttons in ui. 2 buttons appearing 1 after 1 without space. how can do?

 = link_to :back, :class => "btn btn-success", :href => '/pt_setup'     %i.icon-arrow-left.icon-white       // not workout   =link_to "new subscription", { :controller => "pt_app", :action => "new_subn"}, :class => 'btn btn-success' 

you can add margin left on second button. can add class on second button e.g

 =link_to "new subscription", { :controller => "pt_app", :action => "new_subn"}, :class => 'btn btn-success left-margin' 

and can add css in haml file

:css   .left-margin { margin-left: 2px } 

or can add inline css 1 of these buttons.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -