473,471 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

add image to input button in internet explorer

5 New Member
I'm trying to create a custom background image for an html input button. As easy as this sounds I can't get the image to render in internet explorer (i know i'm shocked as well). Below is my code: can anyone please help out???

Thanks in advance,

Joe Estes

<html>
<head>
<style type="text/css" rel="stylesheet">
#mysubmit { <br />
font-size: 60%;
padding: 20px;
font-weight: bold;
width:auto;
background-image: url(jenny.jpg);
}
</style>
</head>

<body>
<form method="get" action="http://search.yahoo.com/search">
<input type="submit" id="mysubmit" value="go!" />
</form>
</body>
</html>
Jan 17 '07 #1
3 6906
drhowarddrfine
7,435 Recognized Expert Expert
First, you have html inside the css brackets. Remove the <br/>
Second, there is no "rel" attribute for the <style> tag.
Third, <input> must be inside a block element, such as a div or p.

back in a minute.
Jan 17 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
Then, to your css, add background-color:transparent and border:none; I've forgotten the issues with IE about this so I hope that works for you. If not, reply back.
Jan 17 '07 #3
atma86
5 New Member
you da man!!! the transparency made it work in IE
Jan 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Dom | last post by:
Hi, I wanted to use the Button Element to submit a form like this example: <form action="/test.exe" method="post"> <button id="ID_BUTTON_OK" name="_WEB_EVENT_HANDLER_" type="submit"...
3
by: Simon | last post by:
Hi, I need to prevent Internet Explorer to save the page in history collection when it is in PostBack. To try do this I have put this code: protected override void OnLoad( EventArgs evt) { if...
7
by: Stewart Saathoff | last post by:
Hello, Does anyone know how to open an Internet Explorer URL with a specified Path when someone clicks a URL?
1
by: mubarak basha | last post by:
hi, i wrote the following coding.......... <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Getting...
9
by: shapper | last post by:
Hello, Is there a way to make the browse button an image? Thanks, Miguel
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
2
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
1
oranoos3000
by: oranoos3000 | last post by:
hi i'd like to set background-image of submit button to a picture with gif extension i set style="background-color:url(images/back.gif)" in input tag with this work this button in firefox is shown...
2
by: Prince Joseph | last post by:
Hi, I am fairly new to web designing and I am currently having something display correctly in IE 7. There seems to be a horizontal white space below the first image on the webpage. I can't seem to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.