Solved

remove border around form submit image

Posted on 2011-09-04
10
459 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 53

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 53

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
Technology Partners: 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 53

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 53

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

Suggested Solutions

Title # Comments Views Activity
Internet Explorer View > Style menu 3 29
.CSS HTML Help 3 51
calculate days away 11 59
Excel to HTML macro with inserting lines 14 46
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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.

738 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