Profile
Achievement
 
    
                mocha0range's Recent SnippetsTagged css
- All /
 « Prev 1 Next »
This finds individual CSS attributes, i.e. "foo : bar;" or "bar : 2px solid foo;"
        
        
        
            4 
        
        
            2248 
        
                    posted 16 years ago by mocha0range
            This finds CSS style names, i.e. "#foo" or "#foo, .bar"
Note: You'll need to chomp the trailing "\s{" off the end of the matched string. I matched it just to make sure that it didn't get anything else.
        
        
        
            5 
        
        
            1538 
        
                    posted 16 years ago by mocha0range
            This finds the entire style definition - from #foo to the last brace.
i.e. ".foo, #bar { foo: bar; foo: bar; bar: foo; }"
        
        
        
            4 
        
        
            1397 
        
                    posted 16 years ago by mocha0range