Solved

What am I doing wrong with this submit button?

Posted on 2014-02-11
3
207 Views
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.

So...

Here's my attempt:

<input type='submit' name='submit_assettype' value='continue' style='background-image:url(images/continue_button.jpg);
background-repeat:no-repeat;
width:100px;
height:40px;'>

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

Thoughts?
screenshot.png
0
Comment
Question by:brucegust
3 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 250 total points
Comment Utility
your not wrapping it in a DIV  


div.ui-btn, input[type="submit"]
{
background-image:url(images/continue_button.jpg);
background-repeat:no-repeat;
width:100px;
height:40px;
}
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 200 total points
Comment Utility
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/
0
 
LVL 58

Assisted Solution

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

http://jsfiddle.net/rc7rB/
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now