Hide partial background repeat
        Posted  
        
            by 
                ComFreek
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ComFreek
        
        
        
        Published on 2012-09-01T15:06:49Z
        Indexed on 
            2012/09/01
            15:38 UTC
        
        
        Read the original article
        Hit count: 288
        
Consider these simple CSS rules:
div#container {
    width: 50%;
    height: 260px;
    background-image: url('Image.png');
    background-repeat: repeat-x;
}?
The problem is that I only want full images. If there is not enough space for another duplicate, it should NOT be shown.
I've never heard that CSS provides a rule for it. So how can I achieve it in JavaScript (jQuery already included)?
© Stack Overflow or respective owner