<div class="thought">This is a thought bubble.</div>
<div class="thought">I have cats.</div>
<div class="thought">This is a CodePen on the internet.</div>
<div class="thought">Qui inventore asperiores ipsum asperiores. Ullam voluptas quia quia voluptatem accusantium iste corrupti. Voluptatum deserunt vitae inventore.</div>
<div class="thought">This is another thought bubble.</div>
<div class="thought">I would walk a thousand miles just to see if you put your name in the Goblet of Fire, Harry.</div>
<div class="thought"> 🆒 </div>
body {
background-color:orange;
display:flex;
flex-flow:row wrap;
justify-content:center;
margin:0;
height:100vh;
align-items:center;
align-content:center;
padding:0 10%;
}
.thought {
display:flex;
background-color:#fff;
padding:20px;
border-radius:30px;
min-width:40px;
max-width:220px;
min-height:40px;
margin:20px;
position:relative;
align-items:center;
justify-content:center;
text-align:center;
}
.thought:before,
.thought:after {
content:"";
background-color:#fff;
border-radius:50%;
display:block;
position:absolute;
z-index:-1;
}
.thought:before {
width:44px;
height:44px;
top:-12px;
left:28px;
box-shadow:-50px 30px 0 -12px #fff;
}
.thought:after {
bottom:-10px;
right:26px;
width:30px;
height:30px;
box-shadow:40px -34px 0 0 #fff,
-28px -6px 0 -2px #fff,
-24px 17px 0 -6px #fff,
-5px 25px 0 -10px #fff;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.