I am using the following CSS code which works perfect with Chrome but not with IE browsers
.collapse{
display:block;
}
.collapse + input[type="checkbox"]{
display:none;
}
.collapse + input[type="checkbox"] + *{
display:none;
}
.collapse + input[type="checkbox"]:checked + *{
display:block;
}
Sample Code [Fiddle] (http://jsfiddle.net/Zr5Nf/)
Cœur
39k25 gold badges207 silver badges282 bronze badges
asked Feb 12, 2014 at 5:53
user2079954
4893 gold badges11 silver badges22 bronze badges
1 Answer 1
@Itay many thanks for your help, I just replaced the line <meta http-equiv="X-UA-Compatible" content="IE=8" /> with <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
answered Feb 12, 2014 at 9:26
user2079954
4893 gold badges11 silver badges22 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Itay
You're welcome. If you have published this piece of code earlier, we could have helped you faster :)
Explore related questions
See similar questions with these tags.
default
F12and go to theEmulationTab (Ctrl+8). Make sure that the mode of your browser isDocument mode: Edge(Default), Browser profile: Desktop, User agent string: Default<meta http-equiv="X-UA-Compatible" content="IE=8" />with<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />