リストの表現いろいろ(ピンク)

ピンクのアクセント付きリスト

  • 震度5弱 群馬県 渋川市
  • 震度4 群馬県 前橋市桐生市伊勢崎市吉岡町
  • 震度3 群馬県 高崎市太田市館林市安中市みどり市
  • 震度3 茨城県 総市取手市坂東市五霞町
  • 震度3 千葉県 野田市白井市
  • 震度2 藤岡市富岡市群馬上野村
CODE
HTML

   <div class="listB" class="clearfix">
    <ul>
     <li>震度5弱 群馬県	渋川市</li>
     <li>震度4 群馬県 前橋市桐生市伊勢崎市吉岡町</li>
     <li>震度3 群馬県 高崎市太田市館林市安中市みどり市</li>
     <li>震度3 茨城県 総市取手市坂東市五霞町</li>
     <li>震度3 千葉県 野田市白井市</li>
     <li>震度2 藤岡市富岡市群馬上野村</li>
    </ul>
   </div>
     
CSS

.listP ul{
	overflow: hidden;
	margin: 10 10px 10px -40px;
	padding: 5px 0;
	border-bottom: 1px solid #fff;
	background: hotpink !important;
	list-style: none;
}
.listP li{
	margin: 0;
	padding: 0.5em 1em;
	border: 1px solid #bbb;
	border-top-color: transparent;
	background: #FFFFFF;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .4);
	text-shadow: 0 1px 1px #fff;
}
     

ポストイット風のリスト(ピンク)

  • 震度5弱 群馬県 渋川市
  • 震度4 群馬県 前橋市桐生市伊勢崎市吉岡町
  • 震度3 群馬県 高崎市太田市館林市安中市みどり市
  • 震度3 茨城県 総市取手市坂東市五霞町
  • 震度3 千葉県 野田市白井市
  • 震度2 藤岡市富岡市群馬上野村
CODE
HTML

   <ul class="postitP">
    <li>震度5弱 群馬県	渋川市</li>
    <li>震度4 群馬県 前橋市桐生市伊勢崎市吉岡町</li>
    <li>震度3 群馬県 高崎市太田市館林市安中市みどり市</li>
    <li>震度3 茨城県 総市取手市坂東市五霞町</li>
    <li>震度3 千葉県 野田市白井市</li>
    <li>震度2 藤岡市富岡市群馬上野村</li>
   </ul>
     
CSS

ul.postitP {
  padding: 0;
}
ul.postitP li, ol.postitP li {
  color: #404040;
  border-left: solid 6px mediumvioletred;/*左側の線*/
  border-bottom: solid 2px #dadada;/*下に灰色線*/
  background: ivory;
  margin-bottom: 5px;/*下のバーとの余白*/
  line-height: 1.5;
  padding: 0.5em;
  list-style-type: none!important;/*ポチ消す*/
  font-weight: normal;
}
     

ピンクの囲み付きリスト

  1. 性能の高さは抜群
  2. デザイン性では、他のハウスメーカーに劣る
  3. 間取りの制約は多くて、思うようにならないことも
  4. 標準仕様が充実しているが、オリジナル商品ばかり
  5. 大容量の太陽光パネルが載せられる
  6. 価格は決して安くない
CODE
HTML

   <div class="boxlistP">
    <ol>
     <li> 性能の高さは抜群</li>
     <li> デザイン性では、他のハウスメーカーに劣る</li>
     <li> 間取りの制約は多くて、思うようにならないことも</li>
     <li> 標準仕様が充実しているが、オリジナル商品ばかり</li>
     <li> 大容量の太陽光パネルが載せられる</li>
     <li> 価格は決して安くない</li>
    </ol>
   </div>
     
CSS

.boxlistP ol{
  counter-reset:number; /*数字をリセット*/
  list-style-type: none!important; /*数字を一旦消す*/
  padding: 0.3em 0.8em;
  border: solid 2px mediumvioletred;
}
.boxlistP ol li{
  border-bottom: dashed 1px mediumvioletred;
  position: relative;
  padding: 0.5em 0.5em 0.5em 30px;
  line-height: 1.5em;
}
.boxlistP ol li:before{
  /* 以下数字をつける */
  position: absolute;
  counter-increment: number;
  content: counter(number);
  /*数字のデザイン変える*/
  display:inline-block;
  background: mediumvioletred;
  color: white;
  font-family: 'Avenir','Arial Black','Arial',sans-serif;
  font-weight:bold;
  font-size: 15px;
  border-radius: 50%;
  left: 0;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align:center;
  /*以下 上下中央寄せのため*/
  top: 50%;
  -moz-transform: translateY(-50%);
  	-webkit-transform: translateY(-50%);
  	-o-transform: translateY(-50%);
  	-ms-transform: translateY(-50%);
  	transform: translateY(-50%);
}
.boxlistP ol li:last-of-type{
  border-bottom: none; /*最後のliの線だけ消す*/
}
     

fieldset風の囲みとリスト

POINT

  1. 性能の高さは抜群
  2. デザイン性では、他のハウスメーカーに劣る
  3. 間取りの制約は多くて、思うようにならないことも
  4. 標準仕様が充実しているが、オリジナル商品ばかり
  5. 大容量の太陽光パネルが載せられる
  6. 価格は決して安くない
CODE
HTML

   <div class="fsetBoxP">
    <p><span class="fsetBoxP-title">POINT</span></p>
    <ol class="cNumP">
     <li> 性能の高さは抜群</li>
     <li> デザイン性では、他のハウスメーカーに劣る</li>
     <li> 間取りの制約は多くて、思うようにならないことも</li>
     <li> 標準仕様が充実しているが、オリジナル商品ばかり</li>
     <li> 大容量の太陽光パネルが載せられる</li>
     <li> 価格は決して安くない</li>
    </ol>
   </div>
   <div>
     
CSS

/* fsetBoxとcNumの組み合わせで表示する */
/* fsetBox*/
.fsetBoxB, .fsetBoxP, .fsetBoxG, .fsetBoxY {
    position: relative;
    margin: 1em 0;
    padding: 0.5em 0.5em;
    border-radius: 8px;

}
.fsetBoxB{
    border: solid 3px mediumblue;
    background:ghostwhite;
}
.fsetBoxP{
    border: solid 3px mediumvioletred;
    background:#fdfdf7;
}
.fsetBoxG{
    border: solid 3px darkgreen;
    background:#fffaf4;
}
.fsetBoxY{
    border: solid 3px #f89174;
    background: #FFF;
    color: #f89174;
}

.fsetBoxB-title, .fsetBoxP-title, .fsetBoxG-title, .fsetBoxY-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 120%;
    background: #FFF;
    font-weight: bold;
}
.fsetBoxB-title{
    color: mediumblue;
}
.fsetBoxP-title{
    color: mediumvioletred;
}
.fsetBoxG-title{
    color: darkgreen;
}
.fsetBoxY-title{
    color: #f89174;
}
.fsetBoxB p, .fsetBoxP p, .fsetBoxG p, .fsetBoxY p {
    margin: 5px 0 5px 0; 
    padding: 0;
    color:black;
}
/* マルのナンバーリング */
.cNumB, .cNumP, .cNumG, .cNumY, .cAlpB, .cAlpP, .cAlpG, .cAlpY, .calpB, .calpP, .calpG, .calpY, .cRomB, .cRomP, .cRomG, .cRomY, .cromB, .cromP, .cromG, .cromY{
  counter-reset:number; /*数字をリセット*/
  list-style-type: none!important; /*数字を一旦消す*/
  padding: 0.3em;
  margin:.5em 0 .5em 0;
}
.cNumB{
  /*border: solid 2px #5c9ee7;*/
}
.cNumP{
  /*border: solid 2px mediumvioletred;*/
}
.cNumG{
  /*border: solid 2px #21a3ac;*/
}
.cNumY{
  /*border: solid 2px #f89174;*/
}
.cNumB li, .cNumP li, .cNumG li, .cNumY li, .cAlpB li, .cAlpP li, .cAlpG li, .cAlpY li, .calpB li, .calpP li, .calpG li, .calpY li, .cRomB li, .cRomP li, .cRomG li, .cRomY li, .cromB li, .cromP li, .cromG li, .cromY li{
  position: relative;
  line-height: 1.2em;
  /*margin 0 0.2em 0;*/
  font-size:100%!important;
  color:black;
  padding: 0.5em 0.2em 0.2em 35px;

}
.cNumB li{
  /*border-bottom: dashed 1px #5c9ee7;*/
}
.cNumP li{
  /*border-bottom: dashed 1px mediumvioletred;*/
}
.cNumG li{
  /*border-bottom: dashed 1px #21a3ac;*/
}
.cNumY li{
  /*border-bottom: dashed 1px #f89174;*/
}

ol.cNumB li:before, ol.cNumP li:before, ol.cNumG li:before, ol.cNumY li:before, ol.cAlpB li:before, ol.cAlpP li:before, ol.cAlpG li:before, ol.cAlpY li:before, ol.calpB li:before, ol.calpP li:before, ol.calpG li:before, ol.calpY li:before, ol.cRomB li:before, ol.cRomP li:before, ol.cRomG li:before, ol.cRomY li:before, ol.cromB li:before, ol.cromP li:before, ol.cromG li:before, ol.cromY li:before{
  /*
  c(白丸)
  cjk-ideographic(漢数字)
  decimal(算用数字 。olデフォルト値)
  decimal-leading-zero(先頭に0をつけた算用数字で、01, 02, 03, 等)
  georgian(グルジア数字)
  hebrew(ヘブライ数字)
  hiragana(ひらがな – あいうえお順)
  hiragana-iroha(ひらがな – いろは順)
  inherit listStyleType(プロパティの値は親要素から継承することを指定する)
  katakana(カタカナ – アイウエオ順)
  katakana-iroha(カタカナ – イロハ順)
  lower-alpha(小文字のアルファベットで、a, b, c, d, e 等)
  lower-greek(小文字のギリシャ文字)
  lower-latin(小文字のアルファベットで、a, b, c, d, e 等)
  lower-roman(T小文字のローマ数字で、i, ii, iii, iv, v 等)
  upper-alpha(大文字のアルファベットで、A, B, C, D, E 等)
  upper-latin(大文字のアルファベットで、A, B, C, D, E 等)
  upper-roman(大文字のローマ数字で、I, II, III, IV, V 等)
  */
  /*数字のデザイン変える*/
  position: absolute;
  display:inline-block;
  margin-left:0px;
  margin-right:7px;
  color: white;
  border-radius: 50%;
  left: 0px;
  width: 25px;
  height: 25px;
  line-height: 20px;
  text-align:center;
  font-family: 'Avenir','Arial Black','Arial',sans-serif;
  font-weight:bold;
  font-size: 100%;
  /*以下 上下中央寄せのため*/
  /*top: 50%;*/
  top:20px;
  -moz-transform: translateY(-50%);
  	-webkit-transform: translateY(-50%);
  	-o-transform: translateY(-50%);
  	-ms-transform: translateY(-50%);
  	transform: translateY(-50%);
}
     

ピンクの見出し付きリスト

タイトル

青の見出し付きリストのpタグの表示

  1. 第1のリスト
  2. 第2のリスト第2のリスト第2のリスト第2のリスト第2のリスト第2のリスト
  3. 第3のリスト
CODE
HTML

   <div class="midashiBoxP">
    <span class="midashiBoxP-title">タイトル</span>
    <p class="bold">青の見出し付きリストのpタグの表示</p>
    <ol class="sNumP">
     <li>第1のリスト</li>
     <li>第2のリスト第2のリスト第2のリスト第2のリスト第2のリスト第2のリスト</li>
     <li>第3のリスト</li>
    </ol>
   </div>
     
CSS

/* midashiBoxとsNumの組み合わせで表現 */
.midashiBoxB, .midashiBoxP, .midashiBoxG, .midashiBoxY{
    position: relative;
    margin: 2.5em 0 1em;
    padding: 0.5em 1em;
}
.midashiBoxB{
    background:#fcfcf1;
    border: solid 3px mediumblue;
}
.midashiBoxP{
    background:#fcfcf1;
    border: solid 3px mediumvioletred;
}
.midashiBoxG{
    background:#fdfdf7;
    border: solid 3px seagreen;
}
.midashiBoxY{
    background:#fdfdf7;
    border: solid 3px sienna;
}
.midashiBoxB-title, .midashiBoxP-title, .midashiBoxG-title, .midashiBoxY-title{
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    vertical-align: middle;
    font-size: 17px;
    font-eight: bold;
    border-radius: 5px 5px 0 0;
}
.midashiBoxB-title{
    background: mediumblue;
    color: #ffffff;
}
.midashiBoxP-title{
    background: mediumvioletred;
    color: #ffffff;
}
.midashiBoxG-title{
    background:seagreen;
    color: #ffffff;
}
.midashiBoxY-title{
    background:sienna;
    color: #ffffff;
}
.midashiBoxB p,.midashiBoxP p, .midashiBoxG p, .midashiBoxY p {
    margin: 0; 
    padding: 0;
}
/* 四角のナンバーリング */
.sNumB, .sNumP, .sNumG, .sNumY, .sAlpB, .sAlpP, .sAlpG, .sAlpY, .salpB, .salpP, .salpG, .salpY, .sRomB, .sRomP, .sRomG, .sRomY, .sromB, .sromP, .sromG, .sromY {  counter-reset:number; /*数字をリセット*/
  list-style-type: none!important; /*数字を一旦消す*/
  padding:0.3em;
  margin: .5em 0 .5em 0;
}

.sNumB li, .sNumP li, .sNumG li, .sNumY li, .sAlpB li, .sAlpP li, .sAlpG li, .sAlpY li, .salpB li, .salpP li, .salpG li, .salpY li, .sRomB li, .sRomP li, .sRomG li, .sRomY li, .sromB li, .sromP li, .sromG li, .sromY li{
  position: relative;
  line-height: 1.2em;
  /*font-size:110%!important;*/
  color:black;
  padding: 0.5em 0.2em 0.2em 35px;
}
.sNumB li:before, .sNumP li:before, .sNumG li:before, .sNumY li:before, .sAlpB li:before, .sAlpP li:before, .sAlpG li:before, .sAlpY li:before, .salpB li:before, .salpP li:before, .salpG li:before, .salpY li:before, .sRomB li:before, .sRomP li:before, .sRomG li:before, .sRomY li:before, .sromB li:before, .sromP li:before, .sromG li:before, .sromY li:before{
  position: absolute;
  display:inline-block;
  margin-left:0px;
  margin-right:7px;
  left: 0;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;

  top:17px;
  color: white;
  font-family: 'Avenir','Arial Black','Arial',sans-serif;
  font-weight:bold;
  font-size: 100%;

  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.sNumB li:after, .sNumP li:after, .sNumG li:after, .sNumY li:after, .sAlpB li:after, .sAlpP li:after, .sAlpG li:after, .sAlpY li:after, .salpB li:after, .salpP li:after, .salpG li:after, .salpY li:after, .sRomB li:after, .sRomP li:after, .sRomG li:after, .sRomY li:after, .sromB li:after, .sromP li:after, .sromG li:after, .sromY li:after{
  /* 親のafter要素を継承しないための設定*/
  width:0px;
  height:0px;
}
ol.sNumB li:before, ol.sNumP li:before, ol.sNumG li:before, ol.sNumY li:before{
  counter-increment: number;
  content: counter(number,decimal);
}
ol.sRomB li:before, ol.sRomP li:before, ol.sRomG li:before, ol.sRomY li:before{
  counter-increment: number;
  content: counter(number,upper-roman);
}
ol.sromB li:before, ol.sromP li:before, ol.sromG li:before, ol.sromY li:before{
  counter-increment: number;
  content: counter(number,lower-roman);
}

ol.sAlpB li:before, ol.sAlpP li:before, ol.sAlpG li:before, ol.sAlpY li:before{
  counter-increment: number;
  content: counter(number,upper-alpha);
}
ol.salpB li:before, ol.salpP li:before, ol.salpG li:before, ol.salpY li:before{
  counter-increment: number;
  content: counter(number,lower-alpha);
}
.sNumB, .sAlpB {
 /*border: dashed 1px #5c9ee7;*/
}
.sNumP, .sAlpP {
 /*border: dashed 1px mediumvioletred;*/
}
.sNumG, .sAlpG{
/* border: dashed 1px teal;*/
}
.sNumY, .sAlpY {
 /*border: dashed 1px dark#f89174;*/
}

.sNumB li:before, .sAlpB li:before, .salpB li:before, .sRomB li:before, .sromB li:before{
  background: #5c9ee7;
}
.sNumP li:before, .sAlpP li:before, .salpP li:before, .sRomP li:before, .sromP li:before{
  background: mediumvioletred;
}
.sNumG li:before, .sAlpG li:before, .salpG li:before, .sRomG li:before, .sromG li:before{
  background: teal;
}
.sNumY li:before, .sAlpY li:before, .salpY li:before, .sRomY li:before, .sromY li:before{
  background: #f89174;
}

     

項目番号付き入れ子のリスト

  1. テキスト1
    1. 入れ子1段階目テキスト1
    2. 入れ子1段階目テキスト2
  2. テキスト2
    1. 入れ子2段階目テキスト1
    2. 入れ子2段階目テキスト2
      1. 入れ子3段階目テキスト1
      2. 入れ子3段階目テキスト2
      3. 入れ子3段階目テキスト3
    3. 入れ子2段階目テキスト3
CODE
HTML

   <div style="border: double 5px mediumvioletred;">
    <div class="counterP">
     <ol >
       <li>テキスト1
         <ol>
           <li>入れ子1段階目テキスト1</li>
           <li>入れ子1段階目テキスト2</li>
         </ol>
       </li>  
       <li>テキスト2
         <ol>
         <li>入れ子2段階目テキスト1</li>
         <li>入れ子2段階目テキスト2
           <ol>
             <li>入れ子3段階目テキスト1</li>
             <li>入れ子3段階目テキスト2</li>
             <li>入れ子3段階目テキスト3</li>
           </ol>
         </li>
         <li>入れ子2段階目テキスト3</li>
         </ol>
       </li>
     </ol> 
    </div>
   </div>
     
CSS

/* 番号付きリスト  */
.counterP ol{
    counter-reset:item;
    list-style-type:none;
    margin : 0.5em !important;
}
.counterP li:before{
    counter-increment:item;
    content:counters(item, "-")". ";
    color:mediumvioletred;/*項目番号の色の指定*/
}
.counterP ol ol{
    text-indent:30px;
}
.counterP ol ol ol{
    text-indent:60px;
}