Solved

remove border around form submit image

Posted on 2011-09-04
10
456 Views
Last Modified: 2012-06-27
not sure why but there is a border around the form submit button (which is an image) on my page. Any way to get rid of that?  I notice it in all browsers.  Also, in Chrome, I see the word Submit hovering over the image.  And in IE8 there appears to be a space showing up or some strange character.

Any idea how to fix it?
<style type=\'text/css\'>
.headertext_b {
color: #FFFFFF;
font-weight: bold;
font-style: italic;
font-size: 16px;
font-family: Arial, Tahoma, Verdana;
text-shadow: #002838 1px 1px;
}
table.header_bkg {
background: url(\'/images/logo.png\') no-repeat left top;
border-spacing:0;
padding: 0;
color: #FFFFFF;
}
.inputtext {
width: 128px;
height: 18px;
text-align: left;
margin: 0;
border: 0px;
background:#fff;
}
.formsubmit {
width: 46px;
height: 20px;
cursor:pointer;
margin: 0;
border: 0;
}
</style>

<table class=\'header_bkg\' cellpadding=\'0\' height=\'150\' cellspacing=\'0\' border=\'0\' width=\'960\' align=\'center\'>
<tbody>
<form name=\'loginform\' id=\'loginform\' action=\'wp-login.php\' method=\'post\'>
<input type=\'hidden\' name=\'testcookie\' value=\'1\' />
<input type=\'hidden\' name=\'page\' id=\'page\' value=\'enter\' />
<tr>
<td valign=\'top\' align=\'left\' width=\'621\' height=\'150\'>&nbsp;</td>
<td valign=\'top\' align=\'left\' width=\'130\' ><div style=\'padding-top:106px;\'><input type=\'text\' name=\'log\' id=\'user_login\' class=\'inputtext\' value=\'\' tabindex=\'0\' /></div></td>
<td valign=\'top\' align=\'left\' width=\'13\' >&nbsp;</td>
<td valign=\'top\' align=\'left\' width=\'130\' ><div style=\'padding-top:106px;\'><input type=\'password\' name=\'pwd\' id=\'user_pass\' class=\'inputtext\' value=\'\' tabindex=\'1\' /><br /><div style=\'padding-bottom:41px;\'><a href=\'http://membersmix.seozones.com/wp-login.php?action=lostpassword\' title=\'forgot your password? click here\'><img src=\'/images/spacer.gif\' border=\'0\' width=\'130\' height=\'16\'></a></div></div></td>
<td valign=\'top\' align=\'left\' width=\'8\' >&nbsp;</td>
<td valign=\'top\' align=\'left\' width=\'46\' ><div style=\'padding-top:106px;\'><input type=\'image\' src\'/images/submit.png\' alt\'\' title\'\' name=\'wp-submit\' id=\'1\' class=\'formsubmit\' /></div></td>
<td valign=\'top\' align=\'left\' width=\'12\' >&nbsp;</td>
</tr>
</form>
</tbody>
</table>

Open in new window

0
Comment
Question by:COwebmaster
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 51

Accepted Solution

by:
HainKurt earned 168 total points
ID: 36481781
can you please submit fixed code, your code has lots of \ characters everywhere...
also put full path to images in your sample so we can see...
0
 
LVL 51

Assisted Solution

by:HainKurt
HainKurt earned 168 total points
ID: 36481786
do you mean this button?
<style>
.formsubmit {
width: 46px;
height: 20px;
cursor:pointer;
margin: 0;
border: 0;
}
</style>

<div style='padding-top:106px;'>
<input type='image' src='http://membersmix.seozones.com/images/submit.png' alt='' title='' name='wp-submit' id='1' class='formsubmit' />
</div>

Open in new window

0
 
LVL 14

Assisted Solution

by:Giovanni Heward
Giovanni Heward earned 166 total points
ID: 36481788
Start by modifying...

src\'/images/submit.png\'

to

src='/images/submit.png'

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 51

Expert Comment

by:HainKurt
ID: 36481795
i dont see any issue with IE9
0
 
LVL 16

Assisted Solution

by:SSupreme
SSupreme earned 83 total points
ID: 36481814
Based on this markup I didn't found any issues:
<style type='text/css'>
.headertext_b {
color: #FFFFFF;
font-weight: bold;
font-style: italic;
font-size: 16px;
font-family: Arial, Tahoma, Verdana;
text-shadow: #002838 1px 1px;
}
table.header_bkg {
background: url('/images/logo.png') no-repeat left top;
border-spacing:0;
padding: 0;
color: #FFFFFF;
}
.inputtext {
width: 128px;
height: 18px;
text-align: left;
margin: 0;
border: 0px;
background:#fff;
}
.formsubmit {
width: 46px;
height: 20px;
cursor:pointer;
margin: 0;
border: 0;
}
</style>

<table class='header_bkg' cellpadding='0' height='150' cellspacing='0' border='0' width='960' align='center'>
<tbody>
<form name='loginform' id='loginform' action='wp-login.php' method='post'>
<input type='hidden' name='testcookie' value='1' />
<input type='hidden' name='page' id='page' value='enter' />
<tr>
<td valign='top' align='left' width='621' height='150'>&nbsp;</td>
<td valign='top' align='left' width='130' ><div style='padding-top:106px;'><input type='text' name='log' id='user_login' class='inputtext' value='' tabindex='0' /></div></td>
<td valign='top' align='left' width='13' >&nbsp;</td>
<td valign='top' align='left' width='130' ><div style='padding-top:106px;'><input type='password' name='pwd' id='user_pass' class='inputtext' value='' tabindex='1' /><br /><div style='padding-bottom:41px;'><a href='http://membersmix.seozones.com/wp-login.php?action=lostpassword' title='forgot your password? click here'><img src='/images/spacer.gif' border='0' width='130' height='16'></a></div></div></td>
<td valign='top' align='left' width='8' >&nbsp;</td>
<td valign='top' align='left' width='46' ><div style='padding-top:106px;'><input type='image' src='/images/submit.png' alt'' title'' name='wp-submit' id='1' class='formsubmit' /></div></td>
<td valign='top' align='left' width='12' >&nbsp;</td>
</tr>
</form>
</tbody>
</table>

Open in new window

example
0
 

Author Comment

by:COwebmaster
ID: 36481837
that code is in a functions.php page which is the ' are escaped
0
 
LVL 14

Assisted Solution

by:Giovanni Heward
Giovanni Heward earned 166 total points
ID: 36481842
In that case...

Change... src\'/images/submit.png\'

to

src=\'/images/submit.png\'
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 36481866
or better, submit the result html code not php code...
0
 
LVL 15

Assisted Solution

by:Jagadishwor Dulal
Jagadishwor Dulal earned 83 total points
ID: 36481963
Try using
.formsubmit {
width: 46px;
height: 20px;
cursor:pointer;
margin: 0;
border: none;
}

Open in new window

0
 

Author Closing Comment

by:COwebmaster
ID: 36506513
thanks!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

815 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

10 Experts available now in Live!

Get 1:1 Help Now