Isolate HTML Div from Javascript/CSS
        Posted  
        
            by 
                Neb
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Neb
        
        
        
        Published on 2010-12-25T09:32:47Z
        Indexed on 
            2010/12/25
            9:54 UTC
        
        
        Read the original article
        Hit count: 312
        
Is there any way to isolate a div from the rest of the page javascript and css? Something like an iframe but without the iframe(because I dont want any extra requests to the server).
Here is an example:
<html>
<head>
    <style>
        a{
           color:red;
        }
    </style>
</head>
<body>
    <div> <----- I want the link inside here not to be red
        <a href="#">test</a>
    </div>
</body>
</html>
© Stack Overflow or respective owner