How to stretch or scale CSS background

Please let me know whether it is possible to make a background in CSS to stretch or scale to fill its container.

Comments

  • You can use CSS3 property, background-size to achieve this.

    #container {
        background-size: 100% auto; 
    }
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion