How can we create submit button with an image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can we create submit button with an image?

html

24th Dec 2016, 11:31 AM
sonam wangchu
sonam wangchu - avatar
3 Answers
+ 2
No doubts ( but not tested ) just by styling it with a CSS background-image property... ( you probably need to redesign it completly to have a button look with ridges bordes, if you want it -- and applicate this custom style to all your button, because of the inconsistence of the look of button between all the browsers )
24th Dec 2016, 11:53 AM
visph
visph - avatar
+ 2
can it be done just by using HTML?
24th Dec 2016, 12:01 PM
sonam wangchu
sonam wangchu - avatar
+ 2
I don't think... ( EDIT: because submit button are very specialized button -- else you can build standard image button just in HTML ) You can use JS and avoid CSS, but widely better to use CSS and avoid JS: CSS is totally part of HTML ( try to design a page without any css rules, you'll be disappointed ), in regards of JS which is not always supported/activated...
24th Dec 2016, 12:05 PM
visph
visph - avatar