![]() | | ||||||||
| | #1 |
| Money Grows On Trees... War Room Member Join Date: May 2006 Location: In the trenches...
Posts: 2,375
Thanks: 553
Thanked 527 Times in 235 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... |
| | |
| | |
| | #2 |
| A rat after money... War Room Member Join Date: Jul 2009 Location: Inside a cheese...
Posts: 598
Thanks: 363
Thanked 54 Times in 47 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 |
| Kezz Bracey War Room Member Join Date: Dec 2008 Location: Australia
Posts: 1,291
Blog Entries: 5 Thanks: 323
Thanked 596 Times in 291 Posts
|
Try specifically telling your ID that it is applied to an input tag. eg. input#submit Let us know if that works. |
| | |
| | |
| | #4 |
| Web Developer, IT Support War Room Member Join Date: Dec 2008 Location: Birmingham, UK
Posts: 513
Thanks: 10
Thanked 77 Times in 65 Posts
| PHP Code: |
| | |
| | |
| | #5 |
| Money Grows On Trees... War Room Member Join Date: May 2006 Location: In the trenches...
Posts: 2,375
Thanks: 553
Thanked 527 Times in 235 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? |
| | |
| | |
| | #6 |
| Web Developer, IT Support War Room Member Join Date: Dec 2008 Location: Birmingham, UK
Posts: 513
Thanks: 10
Thanked 77 Times in 65 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 | |
| |
![]() |