CSS - dummy icon using unicode character and flex

0 votes
48 views
added Jan 19 in CSS by lcjr First Warrant Officer (11,830 points)
.prompt-box {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
}

.prompt-title {
  display: flex;
  align-items: center;
}

.prompt-title::before {
  content: "\1F4A1"; /* Unicode character for a lightning bolt (you can replace it) */
  font-size: 24px;
  margin-right: 10px;
}

.prompt-desc {
  margin-left: 20px; /* Adjust the margin as needed for spacing between title and description */
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...