Border

younghyun·2022년 2월 2일
0
post-thumbnail
  • border : 테두리

    • border 작성법

       p {
      border: 5px solid red;
      }
      
      span {
      border: 1px dotted #0000ff;
      }
      
      blockquote {
      border-top: 4px double red;
      border-right: 2px solid #666666;
      border-bottom: 6px dashed darkviolet;
      border-left: 1px dotted #00ee44;
      }


margin의 순서는, 순서대로 확정이지만
border순서는 중요하지 않음. 전 세계적으로 약속된 coding convention(코딩 규칙) 지켜주는 게 좋음

  • text-decoration속성

    p태그에 밑줄을 쳐주는 스타일
    밑줄의 두께나 색깔 등, 완벽하게 커스터마이징 하기가 어려움
profile
선명한 기억보다 흐릿한 메모

0개의 댓글