CSS Chat Bubbles

Developer
Size
2,094 Kb
Views
28,336

How do I make an css chat bubbles?

Testing out :nth-child(even). What is a css chat bubbles? How do you make a css chat bubbles? This script and codes were developed by Boylett on 20 August 2022, Saturday.

CSS Chat Bubbles Previews

CSS Chat Bubbles - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Chat Bubbles</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul class="chats"> <li> <em><img src="https://s.gravatar.com/avatar/1cb40ffb9de7f5b6b478d740da1e4f10?s=32" /></em> <blockquote>Hey, just testing out some CSS</blockquote> </li> <li> <em><img src="https://s.gravatar.com/avatar/370149c40507e48ba1caf4aa58dace96?s=32" /></em> <blockquote>Cool. Does it work?</blockquote> </li> <li> <em><img src="https://s.gravatar.com/avatar/1cb40ffb9de7f5b6b478d740da1e4f10?s=32" /></em> <blockquote>You tell me!</blockquote> </li> <li> <em><img src="https://s.gravatar.com/avatar/370149c40507e48ba1caf4aa58dace96?s=32" /></em> <blockquote>T'would seem that it does</blockquote> </li>
</ul>
</body>
</html>

CSS Chat Bubbles - Script Codes CSS Codes

body { background: url(http://c.boylett.uk/images/textures/dark-cotton.png) }
body:before
{ content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
}
.chats
{ width: 300px; margin: 75px auto;
}
.chats > li
{ position: relative; display: block; margin: 15px 0; padding: 0; min-height: 32px;
}
.chats > li > em
{ position: absolute; top: 0; left: 0; width: 30px; height: 30px; overflow: hidden; border: 1px solid #333; border-radius: 3px;
}
.chats > li > em:after
{ content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(0, 0, 0, .2); border-radius: 4px;
}
.chats > li > em > img
{ width: 100%; height: 100%;
}
.chats > li > blockquote
{ position: relative; display: block; margin: 0 0 0 47px; padding: 8px; background: #F00; border: 1px solid #444; background: #FFF; background: linear-gradient(to bottom, #FFF 0%, #FFF 100%); border-radius: 3px; font-size: 12px; font-family: "Arial", sans-serif; color: #222;
}
.chats > li > blockquote:after
{ content: ""; position: absolute; top: 5px; right: 100%; width: 0; height: 0; border: 4px solid transparent; border-top-color: #FFF; border-right-color: #FFF;
}
.chats > li:nth-child(even) > em
{ left: auto; right: 0;
}
.chats > li:nth-child(even) > blockquote { margin: 0 47px 0 0 }
.chats > li:nth-child(even) > blockquote:after
{ right: auto; left: 100%; border-right-color: transparent; border-left-color: #FFF;
}
CSS Chat Bubbles - Script Codes
CSS Chat Bubbles - Script Codes
Home Page Home
Developer Boylett
Username boylett
Uploaded August 20, 2022
Rating 4
Size 2,094 Kb
Views 28,336
Do you need developer help for CSS Chat Bubbles?

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!

Boylett (boylett) Script Codes
Create amazing video scripts 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!