Since you’re wearing one pseudo::after
, use a ::before
to make the other ball
The shadow that is the cat jump, to make the most practical form I found was using a filter: drop-shadow
, because it puts the shadow on the "content" and not exactly on the edge of the box-model
as would be the case with box-shadow
.
OBS: Filters have excellent support, but it doesn’t work in IE (who turns on rss) https://caniuse.com/#feat=css-Filters
body {
background: pink;
}
.balloon-box {
width: 281px;
height: 53px;
background: #f1f1f1;
border-radius: 26.5px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.balloon-box::after {
content: "";
display: block;
width: 17px;
height: 17px;
border-radius: 100%;
background: #f1f1f1;
position: absolute;
bottom: -7px;
right: 30px;
}
.balloon-box::before {
content: "";
display: block;
width: 8px;
height: 8px;
border-radius: 100%;
background: #f1f1f1;
position: absolute;
right: 15px;
bottom: -21px;
}
.balloon-box {
filter: drop-shadow(0 0 3px rgba(0,0,0,.5));
}
<div class="balloon-box balloon-circle">
<p class="balloon-text">I can help marketing strategy</p>
</div>
Studying the post available on this link can make a very positive difference in your use of the site: Stack Overflow Survival Guide in English
– Bacco