1.

Which property specifies where the background image is positioned?(a) background-size(b) background-origin(c) background-image(d) background-clipThis question was posed to me during an online exam.My question is taken from Shadowy Styles, Multiple Backgrounds, CSS Pop-Ups & Menus topic in chapter Layout & Images of CSS

Answer»

Right option is (b) background-origin

Easiest explanation: The CSS background-origin property SPECIFIES where the background image is positioned. This property takes three DIFFERENT values NAMELY border-box, padding-box, content-box. In content-box the background images start from the upper left corner of the content.



Discussion

No Comment Found

Related InterviewSolutions