Message Types

Developer
Size
2,987 Kb
Views
24,288

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 Previews

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;
}
Message Types - Script Codes
Message Types - Script Codes
Home Page Home
Developer Chris Burnell
Username chrisburnell
Uploaded September 16, 2022
Rating 4
Size 2,987 Kb
Views 24,288
Do you need developer help for Message Types?

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!

Chris Burnell (chrisburnell) Script Codes
Create amazing marketing copy with AI!

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!