In designing a responsive web page, how can a designer ensure that the background image scales appropriately on different screen sizes while maintaining its aspect ratio?

  • background-resize: cover;
  • background-scale: auto;
  • background-size: contain;
  • background-size: cover;
To ensure the background image scales appropriately on different screen sizes while maintaining its aspect ratio, the designer should use the background-size: cover; property. This property scales the background image to cover the entire container while preserving its aspect ratio.
Add your answer
Loading...

Leave a comment

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