473,511 Members | 14,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image Button Problem in FireFox

6 New Member
Hi,

I am having a problem with an image button in FireFox.

Here is my button:

[HTML]<input name="Submit" type="image" src="'images/button.gif'" alt="The Button" border="0">[/HTML]

This image button works fine in IE, but in FF you can only click on the bottom half of the button or so. The top half is inactive.

I have never encountered this before, have you?

Remulon
Jan 24 '08 #1
9 5194
Remulon
6 New Member
Even if I add the width and height of the image, it still acts the same in FF.

[HTML]<input name="Submit" type="image" src="'images/button.gif'" alt="The Button" width="190" height="38" border="0">[/HTML]
Jan 24 '08 #2
drhowarddrfine
7,435 Recognized Expert Expert
It works fine for me in FF but I'm surprised what you show works at all because this is incorrect:
[html]src="'images/button.gif'"[/html]

Remove the extra single quotes.
Jan 24 '08 #3
Remulon
6 New Member
ok.. my bad, those quotes aren't really there.. the image source is fed through by php, so I pasted the image source in there for the post..

here is something more puzzling...

I have been throwing in a couple of other buttons to troubleshoot this and at the moment I have 3 buttons in there and the code looks like this:

[HTML]<input name="Submit" type="image" src="images/button.gif" alt="The Button" width="190" height="38" border="0">

<input name="Submit" type="image" src="images/button.gif" alt="The Button" width="190" height="38" border="0">

<a href="#"><img src="images/SubmitOrder.gif" border="0"></a>[/HTML]

The first one is now fully functional, the second one is having the same problem, half active/half inactive, and we all know the bottom one does nothing. But if I take the bottom one out, the first one does the same thing as the second (half active/half inactive).
Jan 24 '08 #4
drhowarddrfine
7,435 Recognized Expert Expert
I had an idea of what the problem was in your first post but I need to see your complete markup, including the css, to be sure. I would bet the problem is actually with IE.
Jan 24 '08 #5
Remulon
6 New Member
ok.. I have PM'd you the link..
Jan 24 '08 #6
drhowarddrfine
7,435 Recognized Expert Expert
The problem is caused by div.ip . It is overlapping the tops of the buttons but the buttons themselves work fine. I'm in my pajamas going to bed so you'll have to look into that.

Your doctype is not current but I don't know that it would affect this. It should be:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Jan 24 '08 #7
Remulon
6 New Member
Thanks doc..

I see that, now that I have the three buttons there, only part of the first one is inactive, the part below the ip class.

Will I have to either move the button down or adjust the height of the ip class?

Or is there any way that I can bring the button to the foreground?
Jan 24 '08 #8
drhowarddrfine
7,435 Recognized Expert Expert
I'm stuck without my dev box so it's difficult for me to judge what needs to be done. IE is messing with that element improperly so it may be a matter of margins but I can't tell right now.

Perhaps adding to your css "outline:1px solid red" will help you see the problem better and you can play with it. I suggest looking into the possibility IE is expanding the div to contain any floated elements (incorrect behavior) or maybe the buttons are floated or absolutely positioned which will take them out of the normal flow causing them to rise up into the position.
Jan 25 '08 #9
Remulon
6 New Member
No problem doc.

I have a quick fix:

The ip div had a padding-bottom:40px, I have removed it and added a padding-top:40px to the div that holds the button.

This fixes the overlap problem and keeps the same spacing between the button and the div above it.

Thanks for your help, it is much appreciated.
Jan 25 '08 #10

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

Similar topics

15
3040
by: Applebrown | last post by:
I've got a couple of errors on my site that I'm not sure how to fix. I'm using simple CSS for both text rollovers and my horizontal navbar, and here's what happens. First, the site: ...
3
3305
by: lofty00 | last post by:
hello, sorry about the repost - I've been posting to several groups and I've decided it's better to make a single repost to all of them rather than an extra post in each. I've been trying to...
5
7898
by: Mark Woodward | last post by:
Hi all, I'm trying to set up a 'control panel' consisting of a table of icons. The early stages: http://www.deepinit.com/controlcentre.php Each of these is set up like: <td> <input...
1
6114
by: Phil_Cam | last post by:
Hello All On a webpage I have a standard paypal image button for purchases. I am trying to set it up so that it only shows up or is endabled when text is entered into a textbox and a button is...
3
21241
by: jackiepatti | last post by:
QUESTION: I have a web page containing a form that contains an image instead of a submit button, e.g. <form name='myform' action='get' method='otherpage.asp'> <input type='image'...
3
2223
by: Charlie | last post by:
Hi: When you click image button in Firefox, a thin, gray dotted line appears around image. Is there a way to get rid of this? Thanks, Charlie
1
3395
by: Chuck Anderson | last post by:
I'm using a simple, pseudo progress bar. Very simply, I display a still image next to a form submit button until the user clicks on it, and then I change the image source to an animated version of...
4
6661
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all I have the following code: I am trying to use the value of the image button to evaluate what plan the user has chosen, i.e. it request("submit1")="Basic", then the user chose basic plan...
1
2417
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...
0
7237
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
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
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
4734
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
3219
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...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.