Pタグを使ってリストを作成しています。
スマホ表示にすると、テキストが2行のところと1行のところで余白感が狭くなったり綺麗におさまらないです。
margin-topを設定しても相殺されるのか直らないです。
この場合の対処法を教えていただけないでしょうか。
よろしくお願いいたします。
sass
1.trouble 2 &__list 3 font-weight: 900 4 font-size: 1rem 5 transform: translateY(50%) 6 +sm_only 7 margin-bottom: 10px 8 position: relative 9 margin-left: 20px 10 &:before 11 content: '\f00c' 12 font-family: 'Fontawesome' 13 color: #efefef 14 margin-right: .5rem 15 +sm_only 16 position: absolute 17 top: 0 18 left: -20px 19
pug
1 2p.trouble__list テキストテキストテキストテキストテキストテキスト 3p.trouble__list テキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト 4p.trouble__list テキストテキストテキストテキスト
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/09/05 02:56