What should be the set value of background-size property such that image will stretch to cover entire content area?

Julipkq

New member
What should be the set value of background-size property such that image will stretch to cover entire content area?
A. 100%100%
B. cover
C. contain
D. 100%
 
Answer: a
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’); }
 

Tìm kiếm

Back
Top