본문 바로가기
my_lesson/_CSS3

CSS List[list-style-type,list-style-image,list-style-position]

by boolean 2015. 4. 17.
728x90
css_list

CSS List[list-style-type,list-style-image,list-style-position]

hello CSS

  1. 목록 관련 속성
    속성 설명 속성값
    list-style-type 목록 표시 마크 지정 none, disc, circle, squaredecimal,
    lower-roman, upper-roman, lower-alpha, upper-alpha
    list-style-image 목록 표시 마크를 이미지로 지정 none, url(“그림 파일명”)
    list-style-position 목록 표시 마크의 시작 위치 outside, inside
    list-style 일괄 지정 순서 상관없이 관련 속성의 값을 나열

  2. JS Bin
    #mul{list-style-type:square;}
    • #mul{list-style-type:square;}
    • <li style = "list-style-type:circle;">
    • <li style = "list-style-type:disc;">
    #mul1
          {
          list-style-image:
          url(http://cfs.tistory.com
          /custom/blog/156/1560470/skin
          /images/arrow-000-small.png);
          }

    Normal

    • List attribute
    • Good luck!
    • normal

    Inside

    • List attribu
    • good
    • inside

    Outside

    • List attribu
    • good
    • outside
    #ol
      {
        list-style-type:decimal;
        font-weight:600;
      }
    1. #ol { list-style-type:decimal; font-weight:600; }
    2. <li style = "list-style-type:lower-roman;">
    3. <li style = "list-style-type:upper-roman;">
    4. <li style = "list-style-type:lower-alpha;">
    5. <li style = "list-style-type:upper-alpha;">


댓글