/ Published in: CSS
                    
                                        
Last height property is for ie 5.5
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
#ID_OF_ELEMENT {
padding: HEIGHT_OF_IMAGEpx 0 0 0;
overflow: hidden;
background-image: url("hello_world.gif");
background-repeat: no-repeat;
height: 0px !important;
height /**/:HEIGHT_OF_IMAGEpx;
}
/* Image replacement class that works on form buttons, etc */
.image-replaced {
text-indent: -5000px;
background-color: transparent !important;
background-repeat: no-repeat !important;
padding: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
}
URL: http://www.kryogenix.org/code/browser/lir/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                