Flexible, Fluid and Stretched Background Image Size with CSS

Home Forums CSS Tips 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 5 years, 1 month 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.

Ignite Your Thoughts

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend