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

Popular posts from this blog

how to code a weather forecast web

What Build Tools Do JavaScript Developers Use?

WordPress Theme Development From Scratch - 3. Enqueuing CSS and JS to W...

how to use :focus

unit3.online registration form tricks: input field box align right and placeholder text right, but input text left.

how to screenshot a drop down menu on mac

Numbers in JavaScript introduction