LoginSignup
347
297

More than 5 years have passed since last update.

個人的に見た目が気に入ってる下線引く方法

Posted at

自分用メモ

スクリーンショット

HTML
<p>
    このクラス当てたら、<span class="underline">underlineと違って太さも変えられる</span>し、蛍光ペンみたいで好き。
</p>
CSS
p span.underline{
    display:inline-block;
    box-shadow:0 -10px 0 -4px rgba(255,0,0,0.4) inset;
    /*             ↑ ここのサイズ変えたら色々 */
}
347
297
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
347
297