I can't figure out, how I can achieve borders like this:
I was trying with after pseudoelement, like below but I learned from this topic: Why can't an element with a z-index value cover its child? that it's impossible.
I was thinking also about box shadow and outline but nothing seems to be a good solution. Any idea, 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>