[CSS] 가로/세로 중앙-가운데-정렬(Tailwind 추가)
2022-11-03 12:52:18
1. div 태그 가로/세로 중앙-가운데-정렬 flex 사용시 : div태그의 경우 flex와 margin으로 가운데 정렬할 수 있다. .state-card-pack-label { background-color: #0f1642; position: absolute; bottom: 0; width: 212px; height: 65px; /* 가운데 정렬 */ display: flex; /* justify-content: center; */ } .state-card-pack-label-text { /* 가운데 정렬 */ margin: auto; } grid 사용시 place-items: center; display: grid; 출처 https://hianna.tistory.com/675 2. Tailwind의..