![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Offensively Defensive
War Room Member
Join Date: May 2006
Location: In the trenches...
Posts: 1,411
Thanks: 156
Thanked 146 Times in 63 Posts
|
Hey all,
Wonder if you can help me? I'm trying to customize a form submit button using a css rollover like this: #submit { background-image: url(Images/button.png); display: block; height: 60px; width: 299px; } #submit:hover { background-position: 0 -60px; } #submit span { display: none; } The rollover/appearance looks fine in all browsers, but how do I turn this into an actual submit button without having the grey submit box showing up in the background?! My html code is: <table> <tr> <td width="240"><input name="Email1" type="text" size="40" ></td> </tr> <tr align="center"> <td colspan="2"> <input type="button" input id="submit" /> </td> I've tried changing input type from "button" to "hidden" but then it deactivates the button functionality. Any help would be more than appreciated, really it would... |
|
I know why your sales SUCK. And I guarantee if you use this method, you WILL double your income or I'll buy it back off you TWICE. CLICK HERE to get it before I pull it
|
|
|
|
|
|
|
#2 |
|
HyperActive Warrior
War Room Member
Join Date: Jul 2009
Posts: 290
Thanks: 104
Thanked 20 Times in 20 Posts
|
You'll need the form tags too...
<form id="form1" name="form1" method="post" action=""> <input type="text" name="textfield" /> <input type="submit" name="Submit" value="Submit" /> </form> action="process.php" sends to a PHP script f.ex... |
|
|
|
|
|
|
|
|
#3 |
|
Wordpress Wiz
War Room Member
Join Date: Dec 2008
Location: Australia
Posts: 530
Blog Entries: 2
Thanks: 65
Thanked 142 Times in 74 Posts
|
Try specifically telling your ID that it is applied to an input tag. eg. input#submit
Let us know if that works. |
|
Multi-purpose IM Theme, Squeeze Pages, Minisites, Blogs, Review Sites - See inside for Video Review
"Conduit Christmas" - Now's the time to get in on the Christmas $$$. |
|
|
|
|
|
|
#4 |
|
Web Developer, IT Support
War Room Member
Join Date: Dec 2008
Location: Birmingham, UK
Posts: 290
Thanks: 7
Thanked 37 Times in 35 Posts
|
PHP Code:
|
|
|
|
|
|
|
|
|
#5 |
|
Offensively Defensive
War Room Member
Join Date: May 2006
Location: In the trenches...
Posts: 1,411
Thanks: 156
Thanked 146 Times in 63 Posts
|
Thanks for the suggestions guys, but this still isn't working. I keep getting the grey box in the background instead of just the image.
Weird, any other ideas? |
|
I know why your sales SUCK. And I guarantee if you use this method, you WILL double your income or I'll buy it back off you TWICE. CLICK HERE to get it before I pull it
|
|
|
|
|
|
|
#6 |
|
Web Developer, IT Support
War Room Member
Join Date: Dec 2008
Location: Birmingham, UK
Posts: 290
Thanks: 7
Thanked 37 Times in 35 Posts
|
You've got some other CSS that's providing a grey background colour on input elements.
Get Firefox. Get Web Developer and Firebug plugins. Learn to use them. You'll be able to then see the CSS rules being applied to HTML elements, and fix these issues in seconds. |
|
|
|
|
|
|
![]() |
|
| Tags |
| arrgh, driving, nuts, simple, task |
| Thread Tools | |
|
|
![]() |