Can someone help me achieve borders like the ones in this image? https://i.sstatic.net/qZHbK.png
I tried using the after pseudo-element as shown below, but after learning from this discussion: Why can't an element with a z-index value cover its child?, I realized it's not possible.
I also considered using box shadow and outline, but nothing seems to work well. Any ideas, please?
.wp-block-group.is-style-black-blue-border {
position: relative;
z-index: 1;
border: 3px solid #000;
border-radius: 8px;
padding: 10px;
}
.wp-block-group.is-style-black-blue-border::after {
content: "";
width: calc(100% + 6px);
height: calc(100% + 6px);
display: block;
position: absolute;
bottom: -8px;
right: -8px;
z-index: -1;
border: 3px solid blue;
border-radius: 8px;
}
<div class="wp-block-group is-style-black-blue-border">
<div class="wp-block-group__inner-container">
<p>some content</p>
</div>
</div>