There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 boot bsod computer cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware help please hijackthis hjt hjt log install internet internet explorer itunes javascript keyboard lan laptop log malware monitor network networking outlook outlook 2003 outlook express password php popups problem router seo slow sound sp3 spyware startup trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless youtube
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: button image not showing up in IE


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
skyhigh007's Avatar
Senior Member with 362 posts.
 
Join Date: Jun 2004
02-May-2008, 01:17 PM #1
Solved: button image not showing up in IE
Hi

why is it that the button images show up in firefox, opera, safari and not IE for the following code?

Code:
<input name="button" class="subscribe" type="submit" value="">
Code:
 input.subscribe{
   
   height: 15px;
   width: 80px;
   margin: 0 0 0 4px;
   padding: 0;
   border: none;
   background-image:url(../images/subscribe.gif);
   cursor: pointer;
}
tomdkat's Avatar
Computer Specs
Distinguished Member with 2,996 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
02-May-2008, 01:52 PM #2
Great question! I have NO idea why IE won't show the background image for the button, so I'll fall back on my "IE sucks" position.

Are you trying this on IE6 or IE7? I just worked up a test case and it failed in IE6 (Maxthon 2.0.9) for me.

Peace...
skyhigh007's Avatar
Senior Member with 362 posts.
 
Join Date: Jun 2004
02-May-2008, 03:17 PM #3
I tried on IE7 and it doesn't work.
tomdkat's Avatar
Computer Specs
Distinguished Member with 2,996 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
05-May-2008, 08:42 PM #4
See if this helps you any.

Peace...
skyhigh007's Avatar
Senior Member with 362 posts.
 
Join Date: Jun 2004
05-May-2008, 09:26 PM #5
Thanks for the link! I guess I have to use CSS instead of image for the button. If I use <input type="image"> then on Safari, the default word "submit" will appear on top of the image.
Jayec's Avatar
Junior Member with 9 posts.
 
Join Date: May 2008
06-May-2008, 02:26 AM #6
Does IE7 require data in Value?? And if so then try a non breaking space (&nbsp;)
skyhigh007's Avatar
Senior Member with 362 posts.
 
Join Date: Jun 2004
06-May-2008, 03:01 PM #7
Even If i put &nbsp;, the image won't show up. Anyway, the IE requires border style.

Last edited by skyhigh007 : 06-May-2008 03:15 PM.
tomdkat's Avatar
Computer Specs
Distinguished Member with 2,996 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
06-May-2008, 07:24 PM #8
So, it's working now?

Peace...
skyhigh007's Avatar
Senior Member with 362 posts.
 
Join Date: Jun 2004
06-May-2008, 07:35 PM #9
Yea, its working now! IE needs to add borders around the button, where Opera, Firefox, and Safari, you dont need too.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:39 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.