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
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
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:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

628 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