Background selector declaration in CSS
        Posted  
        
            by Shivanand
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shivanand
        
        
        
        Published on 2010-04-09T06:46:57Z
        Indexed on 
            2010/04/09
            6:53 UTC
        
        
        Read the original article
        Hit count: 450
        
Hello,
In CSS declaration for a selector is given as:
background-attachment: scroll; 
background-color: transparent; 
background-image: url(/images/ucc/green/btn-part2.gif); 
background-repeat: no-repeat; 
background-position: right top;
I want to optimize the code and change it to:
background: scroll transparent url(/images/ucc/green/btn-part2.gif) no-repeat right top;
My question is, Is this correct way and does it work in IE7/8, Firefox, Safari?
© Stack Overflow or respective owner