본문 바로가기 메뉴 바로가기

Programmers

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Programmers

검색하기 폼
  • 개발 노트 (287)
    • VUEJS (21)
    • JAVA (3)
    • Python (10)
    • HTML CSS JS (72)
    • Servlet JSP (67)
    • JDBC (19)
    • Oracle Database (21)
    • POSIX CLI (13)
    • Git (34)
    • 알고리즘 (4)
    • 개발자 취업 준비 (8)
    • 스크랩 [정보] (1)
    • 이것저것 정리 (6)
  • 방명록

마진중복 (1)
CSS) margin 마진중복(병합, Collapse)

1. 마진 중복 예 1) 좌에서 우로 정렬하면 마직 중복 없음 html css .parent { } .child { width: 100px; height: 100px; background: tomato; float: left; margin: 20px } 실행결과 예 2) 위에서 아래로 정렬하면 마진 중복이 발생 html css .parent { } .child { width: 100px; height: 100px; background: tomato; margin: 20px } 실행결과 2. 마진 중복 계산법 html .parent { width: 300px; height: 200px; background: cyan; } .child { width: 100px; height: 100px; backgroun..

HTML CSS JS 2021. 8. 9. 08:16
이전 1 다음
이전 다음
공지사항

Blog is powered by Tistory / Designed by Tistory

티스토리툴바