πŸ“Š CSS
Q. What should be the set value of background-size property such that image will stretch to cover entire content area?
  • (A) 100%
  • (B) contain
  • (C) cover
  • (D) 100%100%
πŸ’¬ Discuss
βœ… Correct Answer: (D) 100%100%

Explanation: If background-size property is set to “100%100% “ the background image will stretch to cover the entire content area. E.g. div { width: 100%; height: 300px; background-image: url(‘img_khj.jpg’); }

Explanation by: Santosh Mishra
If background-size property is set to “100%100% “ the background image will stretch to cover the entire content area. E.g. div { width: 100%; height: 300px; background-image: url(‘img_khj.jpg’); }

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
209
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Santosh Mishra
Publisher
πŸ“ˆ
80%
Success Rate