Solved

remove border around form submit image

Posted on 2011-09-04
10
455 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
 
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

20 Experts available now in Live!

Get 1:1 Help Now