前提・実現したいこと
このように、ページ内のコンテンツを区切る十字の線を引きたいです。
お手数おかけしますが、回答お待ちしております。( ; ; )
該当のソースコード
html
1<div class="features"> 2 <ul class="col col_sp_full"> 3 <li> 4 <div class="features-inner"> 5 <img width="250px" src="<?php bloginfo('template_directory'); ?>/images/about/about-ico01.png"> 6 <p class="features-number">01</p> 7 <h3></h3> 8 <p class="features-text"></p> 9 </div> 10 </li> 11 <li> 12 <div class="features-inner"> 13 <img width="200px" src="<?php bloginfo('template_directory'); ?>/images/about/about-ico02.png"> 14 <p class="features-number">02</p> 15 <h3></h3> 16 <p class="features-text"></p> 17 </div> 18 </li> 19 <li> 20 <div class="features-inner"> 21 <img width="250px" src="<?php bloginfo('template_directory'); ?>/images/about/about-ico03.png"> 22 <p class="features-number">03</p> 23 <h3></h3> 24 <p class="features-text"></p> 25 </div> 26 </li> 27 <li> 28 <div class="features-inner"> 29 <img width="150px" src="<?php bloginfo('template_directory'); ?>/images/about/about-ico04.png"> 30 <p class="features-number">04</p> 31 <h3></h3> 32 <p class="features-text"></p> 33 </div> 34 </li> 35 </ul> 36 </div>
css
1 2ul.col { 3 display: flex; 4 flex-flow: row wrap; } 5 ul.col > li { 6 flex: 0 0 50%; 7 width: 50%; 8 /* before Android4.3 iOS6:Safari */ 9 max-width: 50%; 10 /* IE11*/ 11 height: auto; } 12 13 14.features .features-inner { 15 text-align: center; 16 padding: 20px; 17 max-width: 450px; 18 margin: 0 auto; } 19 20.features .features-inner .features-number { 21 font-weight: bold; 22 text-align: center; 23 font-size: 2.6rem; 24 margin-top: 45px; } 25 26.features .features-inner h3 { 27 font-size: 2.6rem; 28 color: #0088c4; 29 text-align: center; 30 margin-bottom: 20px; 31 line-height: 3.6rem; } 32 33.features .features-inner .features-text { 34 text-align: left; } 35 36li:nth-child(1){ 37 border-right: solid 1px #888; 38 border-bottom: solid 1px #888;} 39 40li:nth-child(2){ 41 border-bottom: solid 1px #888;} 42 43li:nth-child(3){ 44 border-right: solid 1px #888;}
回答1件
あなたの回答
tips
プレビュー