Flexible, Fluid and Stretched Background Image Size with CSS

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Sravan Kumar 7 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8264

    Sravan Kumar
    Keymaster

    I am sure there are many who might be looking for Flexible, Fluid and Stretched Background Image Size with pure CSS3:


    body {
    background: #000 url(stretchbackground.png) no-repeat;
    -webkit-background-size: 100% auto;
    -moz-background-size: 100% auto;
    -ms-background-size: 100% auto;
    background-size: 100% auto;
    }

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Thank you for sharing the article across social media. You can follow us in these paltforms to receive latest updates from WittySparks.

Send this to a friend