Home / Programming MCQs / CSS MCQs / Question

S

Santosh Mishra • 1.66K Points
Master

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.