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 6 years, 5 months 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.

Send this to a friend