...

View Full Version : ie not showing background image



esthera
10-20-2007, 08:59 PM
.mybutton{
background-image: url(images/button.gif);
color:#ffffff;
font-weight:bold;
background-repeat: no-repeat;

width:70px;
height:20px;
font-size:11px;
padding:1px;
background-position: center top;


}

why would ie not show the background image while firefox does?

the game hog
10-21-2007, 07:36 AM
Well for one, you don't need all the extra junk for the background tags, and I think the thing that might be causing your problem in IE is the background alignment. Try it without it, and then check out W3C schools, they got a list of attributes you can use for background alignments, but you shouldn't really need this for a button, right?

Here would be my approach to things.. everything else seemed ok.



.mybutton{
/*Way I always do backgrounds, with the quotes url('') see it below?*/
background: url('images/button.gif') no-repeat;
color: #ffffff;
font-weight: bold;
width: 70px;
height: 20px;
font-size: 11px;
padding: 1px;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum