Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

What am I doing wrong with this submit button?

Posted on 2014-02-11
Last Modified: 2014-02-24
Trying to replace your typical submit button with a background image using CSS. The inline "<input type="image" src="..." didn't work just because I need to assign a specific value to the button and I couldn't get it to work.


Here's my attempt:

<input type='submit' name='submit_assettype' value='continue' style='background-image:url(images/continue_button.jpg);

...and the result is attached. Basically, I'm getting my image AND your normal submit button and I can't figure out what I'm doing wrong.

Question by:brucegust
LVL 22

Accepted Solution

plusone3055 earned 250 total points
ID: 39851015
your not wrapping it in a DIV  

div.ui-btn, input[type="submit"]
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 200 total points
ID: 39851033
The first thing is expecting "<input type='submit'>" to do something else than be a 'submit button'.  Here are some possibilities: http://cssbutton.com/forms/
LVL 58

Assisted Solution

Gary earned 50 total points
ID: 39851035
Add border:none, remove the value="continue" and make sure the button size is the same as the image.


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pure CSS responsive image rotation for Ecommerce Product Page images 4 49
Input box gone wrong 8 33
Little bit of help styling my heading 3 31
ASP.NET Content Page 3 29
CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question