asp.net mvc - Bootstrap button icon on type input submit not visible -


my hyperlink @ end looks fine. first "button", input of type submit, looks bad bootstrap. not see image on button.

actually, guess have use submit button razor how can nice button style bootstrap? there no icon visible!

<input type="submit" class="btn btn-default fa fa-save" id="saveteststeps" /> 

looks good, icon visible:

<a class="btn btn-default" href="#"><i class="fa fa-plus"></i></a> 

the icon classes not intended applied alongside other classes, such buttons. specifically, icon classes things hide text, , have own padding, height, line-height, etc. definitions. if need use icon in button, use button element i element inside. in general, should avoid inputs buttons, though. html should have never allowed in first place, confuses purpose of element: rendering user input control, button technically not.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -