LoginSignup
0
0

More than 3 years have passed since last update.

border-bottomを使わず文字の下にマーカーを引いた様に見せる

Last updated at Posted at 2020-11-15

■ はじめに

タイトルについて記事にしました。
この記事で得る内容は以下の通りです。

・ cssの基礎知識が増える
background,linear-gradientプロパティについて

■ メモ

isara

isara先輩.png

border-bottomでは文字と離れすぎてしまったり、positionを使いたくない時に使えます
20/11/21(土)追記:普通に線引くならtext-decoration: underline;

index.scss
span {
  font-weight: bold;
  background: linear-gradient(transparent 70%, #ebb94d 70%);
}

・ お役立ちリンク
CSSのグラデーション(linear-gradient)の使い方を総まとめ!

0
0
0

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
0
0