HTML & CSS Quiz: Flexbox

This CSS quiz tests how flexbox really distributes space. You will compute item widths from flex-grow, flex-shrink and flex-basis, choose the right alignment property for each axis, and fix the classic overflow caused by min-width: auto.

मीडियम 10 सवाल ~6 मिनट पास होने के लिए 80%

मोड चुनें

आप गेस्ट के तौर पर खेल रहे हैं: XP और streak सेव रखने के लिए साइन इन करें।

सैंपल सवाल

सवाल 1 / 10

The three children are plain <div>s. How are they laid out?

<style>
  .row { display: flex; }
</style>
<div class="row">
  <div>A</div>
  <div>Bbbbbb</div>
  <div>C</div>
</div>
जवाब दिखाएं

B. Side by side, each as wide as its content, starting at the left, and all as tall as the row The defaults are flex-direction: row, justify-content: flex-start, flex: 0 1 auto (no growing) and align-items: stretch. So items sit in a row at their content width and stretch to the row's height.

इस क्विज़ में क्या है

  • Flex container defaults and the main and cross axis
  • Growing and shrinking with flex-grow, flex-shrink and flex-basis
  • What flex: 1 and flex: auto mean
  • justify-content, align-items and auto margins
  • Wrapping, order and the min-width: auto trap

अक्सर पूछे जाने वाले सवाल

क्या अकाउंट ज़रूरी है?

नहीं। कोई भी खेल सकता है। XP, streak, badge और हिस्ट्री सेव रखने के लिए साइन इन करें।

क्या मैं इसे दोबारा दे सकता हूं?

हां। आपका बेस्ट स्कोर सेव रहता है, और हर बार सवाल और जवाब शफ़ल होते हैं।