I have created an element in CSS with pseudo-class :after. Is there a way to change it's CSS properties from jQuery?
            Asked
            
        
        
            Active
            
        
            Viewed 650 times
        
    0
            
            
        - 
                    1say what? what do you have so far? vague much? – Naftali Mar 28 '11 at 17:28
- 
                    can you show us some html and the before and after css ? – mcgrailm Apr 01 '11 at 17:15
2 Answers
0
            
            
        Your question seems a little vague.  You can change the css properties of anything in the DOM by using the css() method, like so:
$('#my-thing').css({
  fontSize: 10em,
  width: 100px
});
If you're asking about getting something with the :after pseudoclass, refer to this answered quesion
Hope this helps you!
 
    
    
        Community
        
- 1
- 1
 
    
    
        Groovetrain
        
- 3,315
- 19
- 23
- 
                    Thanks. So, it seems there is no way to manipulate the elements created in CSS using :after. – z-x Apr 01 '11 at 16:06
- 
                    @z-x unfortunately, no it doesn't seem like this is possible at this time. But you still haven't done a good job of explaining exactly what you want to do. – Groovetrain Apr 01 '11 at 17:41
 
    