1.

Which property is used to align flex items?(a) align-items(b) justify-content(c) align-content(d) flex-growI got this question in an internship interview.Query is from Styling HTML5 Layout with CSS topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct choice is (b) justify-content

To elaborate: justify-content PROPERTY is used to ALIGN FLEX items, the align-items property is used to align flex items VERTICALLY, the align-content property is used to align flex lines, flex-grow specifies how much a flex item will grow relative to rest of flex items.



Discussion

No Comment Found

Related InterviewSolutions