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
Bootstrap Thumbnail Grid Not Starting a New Row Correctly
IE8 Renders Font Weights Randomly
Stop Link's :Before Content from Being Underlined by Rule Applied to the Link
Tools Debugging CSS in Internet Explorer
Media Queries with Rem Units in Chrome
Chrome Cut Off Oswald-Light Font
CSS Webkit Transition - Fade Out Slowly Than Fade In
Twitter Bootstrap: White Space on Left and Right Side in Smaller Screen Widths
Cutting a Triangle Out of Div, But Have It Horizontally Centered
How to Have Slanted Box-Shadows Using Only CSS
CSS Difference Between 0 and 0Em
Prevent Nginx from Serving CSS Files as Text/Plain
Global CSS Variables VS Local Variables in Terms of Efficiency
Transform Scale Property Not Working in Chrome & Safari