css

display: inline-blockで文字を中央に合わす方法

css

調べるのめんどくさいので書いておきます。 line-heightので中央寄せできます。 .btn-md height: 40px line-height: 40px こんな感じでheightと揃えればできます。 以上です。