###前提・実現したいこと
line-heightで発生する1行目の上の余白だけ消したいです。
調べても出てこなかったです。。
すみませんがご回答頂けますと幸いです。
使用する状況は、アイコンの横に文章が並ぶレイアウトで
・文言が1行で終わる時はアイコンに対して縦中央そろえ(vertical-align: middle)
・文言が2行以上の場合、文言がtopに揃う(vertical-align: top)
というイメージです。。
2行以上になった場合、文言をアイコンの高さと揃えたいのにlineheightのせいで文言に上アキが出るので解消したいです。。
cssはシングルクラスで書いています。
###該当のソースコード
html
1 <div class="faqList__body__table"> 2 <div class="faqList__body__icon"><span>A</span></div> 3 <p class="faqList__body__txt">この文章はダミーです。文字の大きさ、量、字間、</p> 4 </div> 5
css
1.faqList__body__table { 2 display: table; 3} 4 5.faqList__body__icon { 6 position: relative; 7 display: block; 8 margin-right: 20px; 9 width: 45px; 10 height: 45px; 11 border-radius: 23px; 12 float: left; 13 font-family: "Montserrat", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック体", "Yu Gothic", "YuGothic", "メイリオ", "Meiryo", sans-serif; 14 font-weight: 700; 15 font-size: 1.28571rem; 16 line-height: 1.1; 17 background-color: #cb4e0c; 18} 19 20.faqList__body__icon > span { 21 content: ""; 22 display: block; 23 text-align: center; 24 position: absolute; 25 margin-top: -10px; 26 padding: 0; 27 top: 50%; 28 left: 0; 29 right: 0; 30 color: #fff; 31} 32 33.faqList__body__txt { 34 display: table-cell; 35 font-size: 1.14286rem; 36 line-height: 2; 37 vertical-align: middle; 38} 39

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/17 02:39
2017/02/17 02:52
2017/02/17 03:08
2017/02/17 03:22
2017/02/17 03:26
2017/02/17 07:44