CSS Flexbox kya hai?

Flexbox ek CSS layout model hai jo container ke andar items ko efficiently align aur distribute karne me madad karta hai. Ye 1-dimensional layout provide karta hai, jisme items row ya column me arrange hote hain.

Flex Container aur Flex Items

Flexbox me do main parts hote hain:

Basic Example

Item 1
Item 2
Item 3
Item 4
<div style="display:flex;">
  <div>Item 1</div>
  <div>Item 2</div>
  <div>Item 3</div>
  <div>Item 4</div>
</div>

Flexbox ke Important Properties

Flex Items ki Properties

Summary

Flexbox aaj ke time me responsive aur complex layouts banane ke liye bahut popular aur powerful tool hai. Isse aap easily flexible aur aligned designs bana sakte hain bina float ya positioning ke jhanjhat ke.