All Collections
CSS hacks
Create Easy Callout Message
Create Easy Callout Message
Aleks avatar
Written by Aleks
Updated over a week ago

Would you like to create an Alert message to grab your customers' attention? 

It won't take much efforts! Just follow the steps below:

1. Firstly, drag an HTML widget to the page.

2. Copy&paste the following Code into HTML editor:

<div class="callout">
  <div class="callout-header">Alerts Heading Here</div>
  <span class="closebtn" onclick="'none';">&times;</span>
  <div class="callout-container">
    <p>News Here</p>

3. Then, add the following CSS code into HTML widget -> Additional CSS. 

/* Callout box - fixed position at the bottom of the page */
.callout {
  position: fixed;
  bottom: 35px;
  right: 20px;
  margin-left: 20px;
  max-width: 300px;
/* Callout header */
.callout-header {
  padding: 25px 15px;
  background: #555;
  font-size: 30px;
  color: white;
/* Callout container/body */
.callout-container {
  padding: 15px;
  background-color: #ccc;
  color: black
/* Close button */
.closebtn {
  position: absolute;
  top: 5px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
/* Change color on mouse-over */
.closebtn:hover {
  color: lightgrey;

That's it, you're all set :)

Let us know in case of questions!

Did this answer your question?