Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Problem with image on button in IE
(1 viewing) (1) Guest
All your queries regarding CSS will be solved in this forum
  • Page:
  • 1
TOPIC:

Problem with image on button in IE

Problem with image on button in IE 9 months, 1 week ago #791

  • patrica
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Karma: 0
Code:
<td><input type='button' id='btnStyle' align='centre' value=''/></td>

#btnStyle
{
width:15px;
height:20px;
font-size:6px;
font-family: 'arial';
background:url(../images/edit.gif);
}

These work fine in all browser, the button is displayed with the correct image but in IE8 the buttons are half the width, and at the same time image is also not visible on it Can anyone help?

Re: Problem with image on button in IE 9 months, 1 week ago #792

  • suny
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
The "auto" might cause Internet Explorer to view the images in their full size.Try this code

Code:

.btnStyle
{
width: auto;
height: auto;
font-size: 9px;
font-family: 'Tahoma';
background: url("../images/edit.gif");
}
  • Page:
  • 1
Time to create page: 1.22 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download