Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Umme Q
Umme Q

Posted on

     

Difference between Flexbox and CSS grid?

Flexbox:

  1. Flexbox a 1-dimensional system, meaning it can handle in rows.
    Example
    Home About us Gallery --------------->(Header)

  2. Main motive to alter width and height to best fill the available space

  3. More focus on content rather than layout

  4. Use for small scale, fundamentally to display linear.

CSS Grid:

  1. CSS Grid is a 2-dimensional system, meaning it can handle both columns and rows
    Example
    Header
    Body
    Footer

  2. Layout allows us to align components into columns and rows

  3. Approach mainly focus on Layout other than content

  4. Grid is used for large scale where there no linear display

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

#CuriousCoder
  • Location
    India
  • Work
    Angular Developer
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp