Image label for input in a form not clickable in IE11
One way to fix this is with pointer-events: none
on the image, and adjusting the label with for example display: inline-block
. (pointer-events
is supported in IE11.)
label{
display: inline-block;
}
label img{
pointer-events: none;
}
(Demo at jsFiddle)
anchors and input fields not working in IE11
Your page works fine when IE11 is in IE10 emulation mode, and when you remove the z-index: -9999
from the body
element set by main.css
.
See https://stackoverflow.com/questions/21676600/ie11-negative-z-index
LABEL is not working in IE11 with TR , need to select the radio button on click of the row anywhere
You cannot enclose separate tr
within a separate label
. Try some script to achieve this.
function toggle_row(e, row_id) {
e = e || window.event; //get event
var el = e.srcElement || e.target; //get the right html element, on which user clicked
var input = document.getElementById(row_id);//get the checkbox for the row clicked
if (el != input) //checkbox was not clicked
input.checked = !input.checked; //flip the checkbox selection
}
tr {
cursor: pointer;
}
<table>
<tr onclick="toggle_row(event,'row_1')">
<td>
<input type="checkbox" id="row_1" />
</td>
<td>Foo</td>
<td>Bar</td>
</tr>
<tr onclick="toggle_row(event,'row_2')">
<td>
<input type="checkbox" id="row_2" />
</td>
<td>Foo</td>
<td>Bar</td>
</tr>
<tr onclick="toggle_row(event,'row_3')">
<td>
<input type="checkbox" id="row_3" />
</td>
<td>Foo</td>
<td>Bar</td>
</tr>
</table>
IE 11 Bug - Image inside label inside form - Need to preserve mouse events
Did you try to set an id to the inputs and the for-attribute to the labels?
<label class="starRadioButton" for="rating4"><input type="radio" id="rating4" name="Rating" value="4" />
<img title="Very Good" alt="4" class="starFour" src="~/Content/star-grey.png" /></label>
I believe IE is a bit stricter then others browser regarding labels/inputs.
If that not help, try to set an Id to your inputs and expand your click event listener with (as example) $("#rating4").attr("checked", true).
Checkbox image styling not working correctly within form on IE
This looks like a duplicate of another question: Image label for input in a form not clickable in IE
updated fiddle: https://jsfiddle.net/dnptmydo/
input[type="checkbox"][id^="cb"] {
display: none;
}
label {
border: none;
padding: none;
display: inline-block;
position: relative;
margin: none;
/* cursor: pointer; */
}
label img {
height: 125px;
width: 125px;
transition-duration: 0.2s;
transform-origin: 50% 50%;
pointer-events: none;
}
:checked + label img {
transform: scale(1);
box-shadow: 0 0 20px #ff0;
z-index: -1;
}
<form>
<input id="cb1" name="product1[]" type="checkbox" value=" Classic switch" />
<label for="cb1">
<img src="http://www.4jewelersonly.com/wp-content/uploads/sites/16/2015/03/127880648-670x670.jpg" alt="Sample Image" />
</label>
<input id="cb2" name="product2[]" type="checkbox" value=" Right angle switch" />
<label for="cb2">
<img src="http://www.4jewelersonly.com/wp-content/uploads/sites/16/2015/03/127880648-670x670.jpg" alt="Sample Image" />
</label>
<input id="cb3" name="product3[]" type="checkbox" value=" Adaptor" />
<label for="cb3">
<img src="http://www.4jewelersonly.com/wp-content/uploads/sites/16/2015/03/127880648-670x670.jpg" alt="Sample Image" />
</label>
<input id="cb4" name="product4[]" type="checkbox" value=" Blow switch" />
<label for="cb4">
<img src="http://www.4jewelersonly.com/wp-content/uploads/sites/16/2015/03/127880648-670x670.jpg" alt="Sample Image" />
</label>
<input id="cb5" name="product5[]" type="checkbox" value=" Cable" />
<label for="cb5">
<img src="http://www.4jewelersonly.com/wp-content/uploads/sites/16/2015/03/127880648-670x670.jpg" alt="Sample Image" />
</label>
</form>
IE 11 input not displaying typed text
It's hard to tell without seeing the CSS, however i encountered this issue a while back and fixed it by setting the height of the input box.
My theory is that IE didn't think there was enough height to show the text in the font size I had specified.
For example
<input type="text" id="example" style="height: 40px" />
I hope this helps.
Related Topics
Darken a Background Image Without Affecting the Text
Different Colors in Placeholder
Why Does an Inline-Block Align to Top If It Has No Content
How to Force Chapters to Start on Odd Pages (HTML and Epub)
Multiple Webpages with Common Title and Navigation Bars
Best Method for Creating a Pure HTML5 + CSS3 Animated "Sonar Wave" Icon
Float Multiple Fixed-Width/Varible-Height Boxes into 2 Columns
Removing Border Style Changes Page Layout
Is There a Style Type Besides Text/Css
3 Column Layout (Fixed, Fluid, Fixed) with Minimum Width
CSS Position - Top 100% Is Not Equal to Bottom 0
Setting Overflow: Scroll on a Table with Display: Flex
Animating a CSS Gradient Background on the Hover Event
In What Conditions We Can Use CSS * Selector
<Br> Not Causing New Line on Chrome
How to Center a Container in My HTML/Css
How to Make Sure That My Footer Shows All the Way at End of the Page Rather Than in the Middle