1.

What is the default value of object-fit?(a) fill(b) contain(c) none(d) coverThis question was addressed to me in a job interview.My enquiry is from Table Graphs, 2D Transforms, Boxing of Images & Constrained Images in division Layout & Images of CSS

Answer»

Correct choice is (a) FILL

The best I can EXPLAIN: Object-fit has can be set with five values. When set to the value fill, it is the default value which stretches the image to fit the content box, regardless of its aspect-ratio, contain INCREASES or DECREASES the SIZE of the image to fill the box whilst preserving its aspect-ratio.



Discussion

No Comment Found

Related InterviewSolutions