Home » HTML » Html miscellaneous » Question
  1. What should be the set value of background-size property such that image will stretch to cover entire content area?
    1. 100%
    2. contain
    3. cover
    4. 100%100%
    5. None of these
Correct Option: D

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’); }



Your comments will be displayed only after manual approval.