-
[CSS] line으로 circle 만들기개발 여정/FrontEnd 2023. 1. 31. 11:15
CSS에서 line으로 circle 만들기
1. width, height px를 똑같이 해서 정사각형을 만든다.
.circle-by-line{ width: 20px; height: 20px; }
2. border-radis를 50% 줘서 테두리를 둥글게 만든다.
.circle-by-line{ width: 20px; height: 20px; border-radius: 50%; }
완성! '개발 여정 > FrontEnd' 카테고리의 다른 글
[Next.js] v13의 Next/Image (이미지 최적화) (0) 2023.03.18 [TypeScript] Any, Union, Type Aliases, Type Guard (0) 2023.03.02 window.scrollTo()를 이용한 스크롤 이동 (0) 2023.01.30 [React] 비동기 작업 | 콜백 지옥 | Promise (0) 2022.11.26 DOM(문서 객체 모델, Document Object Model)이란? (0) 2022.09.27