Posts
Showing posts with the label background image
review:Styling the “wildlife” div with Background Properties task5 (using border-box)
- Get link
- X
- Other Apps
Finally, give .wildlife the box-sizing property and value that forces any padding and border widths into its total width and height. /* Complete the challenge by writing CSS below */ .wildlife { background-image: url('img/bear.jpg'); background-repeat:no-repeat; background-position:center; background-size: cover; box-sizing:border-box; }
review:Styling the “wildlife” div with Background Properties task4 (using background-size:cover)
- Get link
- X
- Other Apps
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; }
review: Styling the “wildlife” div with Background Properties task3 (using background-position)
- Get link
- X
- Other Apps
review: Styling the “wildlife” div with Background Properties task2 (using background-repeat:no-repeat)
- Get link
- X
- Other Apps
review: Styling the “wildlife” div with Background Properties task1 (using background-image:url...)
- Get link
- X
- Other Apps
Create a new rule that targets the class 'wildlife'. Set the bear.jpg image, located in the img folder, as the background image. /* Complete the challenge by writing CSS below */ .wildlife { background-image: url('img/bear.jpg'); } Html: <!DOCTYPE html> <html> <head> <title>Lake Tahoe</title> <link rel="stylesheet" href="page.css"> <link rel="stylesheet" href="style.css"> </head> <body> <div class="primary-content t-border"> <p class="intro"> Lake Tahoe is one of the most breathtaking attractions located in California. It's home to a number of ski resorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation. </p> <a class="callout" href="#more">Find out more</a> <div class="wil...