Alert popup message

Simple alert popup message

by Vishnuprasad ps

HTML

<div class="alert-popup">
  <div class="alert-msg">
    <h5>Downloading Inventory Report..</h5>
    <h6>It may take a few moments</h6>
  </div>
  <a href="#">X</a>
</div>

CSS

.alert-popup {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

.alert-msg {
  padding: 1rem 1.5rem;
}

.alert-msg h5 {
  margin: 0 0 0.25rem;
  font-size: 16px;
  font-weight: normal;
}

.alert-msg h6 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
}



/* Close button styles */
.alert-popup a {
  text-decoration: none;
  color: inherit;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  border-radius: 100%;
  transition: all ease 0.1s;
}

.alert-popup a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}