Solved

remove border around form submit image

Posted on 2011-09-04
10
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 55

Accepted Solution

by:
Huseyin KAHRAMAN 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 55

Assisted Solution

by:Huseyin KAHRAMAN
Huseyin KAHRAMAN 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 15

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 55

Expert Comment

by:Huseyin KAHRAMAN
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 15

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 55

Expert Comment

by:Huseyin KAHRAMAN
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

717 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