쌩귤
close
프로필 배경
프로필 로고

쌩귤

  • 분류 전체보기 (3)
    • 개발 (2)
    • Frontend (1)
      • CSS (1)
  • 홈
  • 태그
  • 방명록
flexbox에서 align-item의 기본 속성인 stretch을 알아보자

flexbox에서 align-item의 기본 속성인 stretch을 알아보자

align-item 속성의 기본 값은 stretch로 flex item은 flex container의 교차축을 최대한 채우기 위해서 늘어난다. 추가설명)display: flex를 선언하면 flex container가 되고, 자식 요소들은 flex item이 된다. 예시와 함께 살펴보자 html 코드 1 2 3 4 css 코드ul { height: 50px; display: flex; justify-content: space-between; list-style: none; border: 4px solid red;}ul li { border: 4px solid green;}ul li a { display: flex; align-items: center; padding: 0 10px; ..

  • format_list_bulleted Frontend/CSS
  • · 2024. 8. 31.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (3)
    • 개발 (2)
    • Frontend (1)
      • CSS (1)
최근 글
인기 글
최근 댓글
태그
  • #Flex
  • #특수기호
  • #stretch
  • #flexbox
  • #align-item
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바