Opera 7 Hack

Test of Filter

This text will be green if the rule has been applied.

Code Syntax

<head>
    ...    
    <!-- A comment inside the head element before the stylesheet with that certain selector is needed to make it work -->
        
    <link rel="stylesheet" href="screen.css" type="text/css" media="screen, projection" />
    <style type="text/css">
    ...
    </style>
    ...
<head>
head+body p#test-element {
    color: #0C0;
}

Browser Support / Behaviour

Applied By

Not Applied By

Unknown

Special Notes

In combination with the Owen Hack, you can hide the CSS from Opera 6 as well:

head+body:first-child p#test-element {
    color: #0C0;
}

It does not matter where the body+html selector is in, you can use either a link or a style element.

We would be pleased, if you could do some further testing. Please email us your results.

Have fun, Stefan Heimann and Klaus Hartl