CSS3 Content Callouts
How do I make an css3 content callouts?
Demo for the daily dabble: Creating Stylized Callouts with the CSS3 Content Property. What is a css3 content callouts? How do you make a css3 content callouts? This script and codes were developed by Alex Raven on 19 September 2022, Monday.
CSS3 Content Callouts - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Content Callouts</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h2 class="title">CSS Callouts</h2>
<section class="frame"> <h3 data-callout="NOTE">Here's Something to Keep in Mind...</h3> <p>Just add <code>data-callout="NOTE"</code> to any header to create a stylized callout like this. Aenean volutpat orci vitae eros fringilla, ut iaculis magna euismod. Etiam ultricies luctus nisl non cursus. Phasellus faucibus bibendum orci in mattis. Nulla facilisi.</p> <h3 data-callout="CODE">Get The Code</h3> <p>Just add <code>data-callout="CODE"</code> to any header to create a stylized callout like this. Aenean volutpat orci vitae eros fringilla, ut iaculis magna euismod. Etiam ultricies luctus nisl non cursus. Phasellus faucibus bibendum orci in mattis. Nulla facilisi.</p> <h3 data-callout="DEMO">View The Live Demo</h3> <p>Just add <code>data-callout="DEMO"</code> to any header to create a stylized callout like this. Aenean volutpat orci vitae eros fringilla, ut iaculis magna euismod. Etiam ultricies luctus nisl non cursus. Phasellus faucibus bibendum orci in mattis. Nulla facilisi.</p> <h3 data-callout="FREE">Start Your Free Trial Today!</h3> <p>Just add <code>data-callout="FREE"</code> to any header to create a stylized callout like this. enean volutpat orci vitae eros fringilla, ut iaculis magna euismod. Etiam ultricies luctus nisl non cursus. Phasellus faucibus bibendum orci in mattis. Nulla facilisi.</p>
</section>
</body>
</html>
CSS3 Content Callouts - Script Codes CSS Codes
/* Demo styles
-------------------------------------------------------------- */
body { background: #eee; color: #666; margin: 0; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.title { color: #bbb; font-size: 40px; font-style: italic; font-weight: 200; margin: 30px 0 30px 15%;
}
p { line-height: 25px;
}
code { background: #f7f7f7; border-bottom: 1px solid #eee; color: #888; font-size: 90%; padding: 4px; vertical-align: middle;
}
/* The base styles for frame & callouts
-------------------------------------------------------------- */
.frame { background: #fff; padding: 20px 40px;
}
[data-callout] { line-height: 25px; margin: 50px 0 25px; position: relative; color: #353535;
}
[data-callout]::before { /* content */ content: attr( data-callout); /* style */ background: #353535; border: 5px solid #fff; color: #fff; font-size: 10px; text-align: center; border-radius: 50%; box-shadow: -2px 0 2px rgba(0, 0, 0, .2); box-shadow: -5px 0 5px rgba(0, 0, 0, 0.2); /* sizing */ box-sizing: content-box; width: 50px; height: 50px; line-height: 50px; margin-right: 10px; margin-top: -20px; /* mobile first postition */ float: left;
}
/* The larger viewport styles for frame & callouts
-------------------------------------------------------------- */
@media ( min-width: 480px) { [data-callout]::before { position: absolute; left: -70px; } .frame { box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1); margin-left: 15%; position: relative; }
}
Developer | Alex Raven |
Username | asraven |
Uploaded | September 19, 2022 |
Rating | 3 |
Size | 2,356 Kb |
Views | 40,480 |
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 |
Purely CSS Line Icons | 2,216 Kb |
AWWWards Inspired Animated Heart Share Icon | 3,330 Kb |
IMac with scrolling screenshot animation on hover | 3,165 Kb |
CSS Counter Auto Numbered Steps | 2,111 Kb |
Media Queries Test Page | 2,636 Kb |
Simple Pulsing Image Hover Effect | 1,954 Kb |
A Directory Tree List Style | 2,856 Kb |
Hover Morphing CSS Line Icons | 2,576 Kb |
OffScreen Panel With Tabbed Nav | 2,932 Kb |
Screen Capture an HTML Element and Save as a Downloadable PNG | 60,592 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 |
Importable Clearfix | Corysimmons | 1,411 Kb |
Twitch TV | Natester13 | 4,488 Kb |
No Vacancy 404 CSS Only | Sethkontny | 0 Kb |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
CSS3 Butterfly | Timohausmann | 3,430 Kb |
React Vote Component | Souporserious | 5,465 Kb |
JS Beispiel getElementsByClassName 3 | HSZG-Frontend-Kurs | 1,988 Kb |
Preloader | Rikki_Sixx | 2,815 Kb |
Day 1 - Portfolio | Chpecson | 3,532 Kb |
HexMaze | Cantelope | 4,825 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!