Lakshay Dulani
Lakshay Dulani

Reputation: 1775

Make the image to stretch over full html body in Bootstrap page

This is my fiddle: fiddle

The image is small in size but I need it to stretch over the full area. Without repeating. How can it be done through CSS? The page uses Bootstrap.

html{


 background:url("http://cdn7.oxygenna.com/wp-content/uploads/2013/11/custom-icon-note-800x600.png");
  background-repeat: no-repeat;
                -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
}

Upvotes: 0

Views: 67

Answers (1)

Domain
Domain

Reputation: 11808

Your code is perfect,but the image you have selected itself has a white border in it and the paper is in the center

crop the image properly and code will work for you

Upvotes: 2

Related Questions