1.

What scales the background image as large as possible?(a) contain(b) cover(c) size(d) resizeThe question was asked in an interview.My enquiry is from Shadowy Styles, Multiple Backgrounds, CSS Pop-Ups & Menus topic in chapter Layout & Images of CSS

Answer»

Correct answer is (a) contain

Best explanation: The contain KEYWORD scales the background image to be as large as possible but both its width and its height must FIT inside the CONTENT area. As such depending on the proportions of the background image and background POSITIONING area, there may be some areas of background which are not covered by the background image.



Discussion

No Comment Found

Related InterviewSolutions