review:Styling the “wildlife” div with Background Properties task4 (using background-size:cover)
Challenge Task 4 of 5
Add a background-size
property. Set a value that fills the entire background of the container while maintaining the width and height proportions.
/* Complete the challenge by writing CSS below */
.wildlife {
background-image: url('img/bear.jpg');
background-repeat:no-repeat;
background-position:center;
background-size: cover;
}
Comments
Post a Comment