What is the effect of the background-size property when set to cover?

  • It centers the background image without stretching or repeating.
  • It repeats the background image to cover the entire container.
  • It shrinks the background image to fit the container, maintaining its aspect ratio.
  • It stretches the background image to cover the entire container, maintaining its aspect ratio.
When the background-size property is set to cover, it stretches the background image to cover the entire container, maintaining its aspect ratio and ensuring no part of the container is left uncovered.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *