Image Button Displaying 'Submit Query' Over the Top of Image in Firefox

Image button displaying 'Submit query' over the top of image in Firefox

Add this attribute to your button:

value=""

APS .NET Image button displaying 'Submit query' over the top of image in IE10

See the comment of @Pete (text-indent) - this helps me. All credits to him.

Remove Submit Query From dynamically added Image Button

I assume you are doing something like this to add ImageButton :

      ImageButton imageButton = new ImageButton();
FileInfo fileInfo = new FileInfo(strFileName);
imageButton.ImageUrl = "~/img/abc.png";
imageButton.Width = Unit.Pixel(100);
imageButton.Height = Unit.Pixel(100);

I suggest you to set value attribute to empty string "" like this :

imageButton.Attributes["value"]="";

OR

imageButton.Attributes.Add("value", "");

Also refer to this stackoverflow post

Hope this helps !

css submit button / a href cross-browser

You can replace the Submit button with an image the same way you do it with a background-image for a link. Simply get rid of the background and border, put the background-url in the input selector, and give it the right width and height.

input{
background-color: white;
border: 0;
background-image: url('blah.png');
}

Mozilla firefox using @media screen and (-webkit-min-device-pixel-ratio:0)

With Firefox 49 Mozilla introduced the ability to understand and work with "-webkit" properties.1
I think that's still working.

What is input type=image / typically used for?

It behaves like a mini imagemap. This is by design.



Related Topics



Leave a reply



Submit