The Bulma - notification blocks are used to alert users for something. Basically, it can be seen as a pinned notification in the corner of the viewport.
To create a Bulma notification element, follow the following given below steps.
.notification
class to the notification container base class.
.delete
class to the <button>
element base class that will exist inside the notification container.
General Syntax
<div class="notification">
<button class="delete"></button>
<p>......</p>
</div>
Source Code
<div class="container">
<div class="notification">
<button class="delete"></button>
Sudhakarinfotech is an online web development learning platform for professionals & beginners. You can learn different programming languages.
</div>
</div>
Source Code : Output
To create, colored notification block, use is-primary
,is-link
,is-info
,is-success
,is-warning
,is-danger
.
General Syntax
<div class="notification is-{primary | is-link | is-info | is-success | is-warning | is-danger}">
<button class="delete"></button>
</div>
Source Code
<div class="notification is-primary is-light">
<button class="delete"></button>
<strong>sudhakarinfotech</strong> provides object oriented tutorials also.You can learn object oriented javascript as well as object oriented PHP.
</div>
Source Code : Output
Each background color has its own light version. Simply, append the .is-light
modifier to obtain the light version of the notification.
General Syntax
<div class="notification is-{primary | is-link | is-info | is-success | is-warning | is-danger} is-light">
<button class="delete"></button>
</div>
Source Code
<div class="notification is-primary is-light">
<button class="delete"></button>
Learn & understand the Bulma light notification concept with the help of an examples.
</div>
Source Code : Output