0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Bootstrapでoutlineなalertの作り方

Last updated at Posted at 2020-06-23

環境

  • Bootstrap4

出来上がり

bootstrap-outline-alert.png

コード

<div class="alert alert-primary bg-white text-primary">outlineなprimaryアラート</div>
<div class="alert alert-secondary bg-white text-secondary">outlineなsecondaryアラート</div>
<div class="alert alert-success bg-white text-success">outlineなsuccessアラート</div>
<div class="alert alert-danger bg-white text-danger">outlineなdangerアラート</div>
<div class="alert alert-warning bg-white text-warning">outlineなwarningアラート</div>
<div class="alert alert-info bg-white text-info">outlineなinfoアラート</div>
<div class="alert alert-dark bg-white text-dark">outlineなdarkアラート</div>

alertをoutlineな感じにするには、通常のalertの要素にbg-white text-primaryを追加します。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?