Is there any way to emulate css selector “+” in IE6,7?
h1 + h2{margin-top: 10px;}
Can’t find any solution.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use jQuery to add classes for IE6:
In IE7, adjacent-sibling combinator (
+) does work natively with limitation caused by bug related to HTML comments. There is JavaScript workaround that removes HTML comments as DOM nodes after page is loaded.