CSS Grid vs Flexbox 언제 무엇을 사용하는게 좋을까?
✅ Grid 와 Flexbox의 차이를 알아보자!비교GridFlexbox레이아웃 유형2차원 (행 + 열)1차원 (행 또는 열)주로 사용하는 경우전체 페이지 / 큰 구조작은 UI 요소 정렬배열 방식grid-template-rowsgrid-template-columnsflex-direction 으로 한 방향 정렬정렬 방식justify-itemsalign-itemsjustify-itemsalign-items❓ 언제 Grid를 사용해야할까?전체 페이지 레이아웃을 구성할 때복잡한 카드 UI 레이아웃을 짤 때행(row)과 열(column)을 동시에 정렬해야할 때Grid를 적용한 예제코드 1 2 3.grid-container { display: grid; grid-template-columns: repea..