Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
IE7 adjacent selector bug
Just a heads up for anyone using adjacent selectors in IE7: Don’t use HTML comments between your adjacent elements! It seems IE7 treats comments as elements, so your targeted element isn’t styled.
Example:
<div id="foo"><p>Not me</p></div><!--//foo-->
<p>Yes, me!</p>
CSS:
#foo + p {
background: red;
}
At least it’s easy enough to remove the comment :).
Offline
Pages: 1