[Nomadecoder] Vanilla JS , CSS Challenge Day 4/14
IT/Web Programming2021. 1. 15. 23:07
Day 4 Challenge :
text / item을 grid box 안으로 넣는것을 많이검색했는데
margin / flex를 꼭 이용해야하는것같다.
그래서 그냥 쉽게
div {
display:flex;
justify-content:center;
align-items:center;
font-size:24px;
}
이걸로 해결가능.
Centering in CSS Grid
I'm trying to create a simple page with CSS Grid. What I'm failing to do is center the text from the HTML to the respective grid cells. I've tried placing content in separate divs both inside and
stackoverflow.com
바닐라 챌린지는 그래도 오늘 은 쉬웟따 다행이!
수업만 잘들엇어도 바로 가능한 숙제!
반응형
'IT > Web Programming' 카테고리의 다른 글
[Nomadecoder] Vanilla JS , CSS Challenge Day 6/14 (0) | 2021.01.18 |
---|---|
[Nomadecoder] Vanilla JS , CSS Challenge Day 5/14 (0) | 2021.01.16 |
[Nomadecoder] Vanilla JS , CSS Challenge Day 3/14 (0) | 2021.01.14 |
[NomadeCoder] HCSS Lay out 2주 완성반 challenge 2/14day (0) | 2021.01.13 |
[Nomadecoder] CSS Layout MasterClass #1.1 (0) | 2021.01.12 |
댓글()