Hello. How can you make a picture like a picture instead of a plain button like submit, but the function of the button is the same?

    6 answers 6

    <input type="submit" style="background-image: url(image.png);" /> 
    • Already figured out, but thanks anyway. - Pavlik290592 '13

    background-image

    • Sorry did not notice the answer above. Use background-image and everything will be good. - ka5itoshka
     <button type="submit"> <image src="<url>"> а можно и кучу других тегов какие хотите </button> 
       <input type="image" src="{url}" name="" /> 

        In css you can do it like this:

         input[type="submit"] { background:url('image.jpg'); } 

          try this: src="img/bg.gif"

          • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky
          • And where should the questioner embed this fragment? - ߊߚߤߘ

          Protected by aleksandr barakin participant on Jul 25 '16 at 16:14 .

          Thank you for your interest in this issue. Since he collected a large number of low-quality and spam responses, which had to be deleted, now it’s necessary to have 10 reputation points on the site (the bonus for account association is not counted ).

          Maybe you want to answer one of the unanswered questions ?