LoginSignup
0
1

More than 3 years have passed since last update.

文字数に応じて背景色の横幅が可変するCSS設定方法

Last updated at Posted at 2020-04-11

文字数に応じて可変する背景色の設定方法についてメモします。

image.png

上記の「カテゴリ名」のワッペンを文字数に応じて背景枠を可変にするには、
classに「display:inline-block」を設定することで実現できます。

以上です。ご参考になれば幸甚です。

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