Message Types
How do I make an message types?
Saw a style similar to this while browsing the ol' Internets. Decided to mock it up from scratch in a simple way.. What is a message types? How do you make a message types? This script and codes were developed by Chris Burnell on 16 September 2022, Friday.
Message Types - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Message Types</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="message message--error"> <p>Pastrami biltong sirloin alcatra ham hock ball tip short ribs tail chuck. Brisket turkey bacon ham porchetta ball tip. Andouille kielbasa pork loin turkey.</p>
</div>
<div class="message message--warning"> <p>Pastrami fatback frankfurter ground round pork belly. Meatloaf landjaeger boudin pork strip steak. Bresaola tail capicola, salami landjaeger jerky pork loin tenderloin bacon filet mignon.</p>
</div>
<div class="message message--success"> <p>Pig tri-tip ground round venison bresaola fatback prosciutto porchetta. Bresaola strip steak rump, turkey meatball pork pig t-bone porchetta cupim ham hock pancetta ham.</p>
</div>
</body>
</html>
Message Types - Script Codes CSS Codes
@charset "UTF-8";
.message { background-color: white; width: calc(100% - 3em); max-width: 24em; padding: 1em 1em 1em 1.5em; border-left-width: 6px; border-left-style: solid; border-radius: 3px; position: relative; line-height: 1.5;
}
.message + .message { margin-top: 2em;
}
.message:before { color: white; width: 1.5em; height: 1.5em; position: absolute; top: 1em; left: -3px; border-radius: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); font-weight: bold; line-height: 1.5; text-align: center;
}
.message p { margin: 0 0 1em;
}
.message p:last-child { margin-bottom: 0;
}
.message--error { border-left-color: firebrick;
}
.message--error:before { background-color: firebrick; content: "‼";
}
.message--warning { border-left-color: darkorange;
}
.message--warning:before { background-color: darkorange; content: "!";
}
.message--success { border-left-color: darkolivegreen;
}
.message--success:before { background-color: darkolivegreen; content: "✔";
}
html { box-sizing: border-box;
}
*, *:before, *:after { box-sizing: inherit;
}
html { height: 100%;
}
body { background-color: gray; min-height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column;
}
Developer | Chris Burnell |
Username | chrisburnell |
Uploaded | September 16, 2022 |
Rating | 4 |
Size | 2,987 Kb |
Views | 24,288 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Infinite Square | 2,937 Kb |
Category Hover Demo | 3,469 Kb |
Psychedelic Slice | 2,681 Kb |
Interesting Hover Animation | 2,686 Kb |
Globule Bleu Jobs Page Anchor Rollover Effect | 2,533 Kb |
Student Charter Demo for City University | 5,837 Kb |
The power of transform for centering - INTERACTIVE | 2,439 Kb |
Cutaway Indicator | 2,435 Kb |
Interaction Jazz | 11,103 Kb |
Persistent Light Source Transform | 2,785 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Ocean | Gordonnl | 2,817 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
CSS Gem Badge | Orchard | 3,335 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
React Markdown Previewer | C0d0er | 3,190 Kb |
Canvas Fireworks | Jackrugile | 6,200 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
Simple animated hover effect | Pobee-norris | 3,044 Kb |
NgEasyModal | Lorenzodianni | 4,159 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!