1.

Which of the following overrides container’s align-items property?(a) order(b) align-self(c) align-items(d) flexThis question was addressed to me during an online interview.Enquiry is from Styling HTML5 Layout with CSS topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right answer is (b) align-self

To EXPLAIN: align-self PROPERTY is used on flex items, it overrides container’s align-items property, flex is shorthand property for flex-grow, flex-shrink, and flex-basis PROPERTIES, the order SPECIFIES the order of flexible item relative to REST of the flex items inside the same container.



Discussion

No Comment Found

Related InterviewSolutions