Answer the question
In order to leave comments, you need to log in
How to insert an element into a frame?
How to make such a block:
The problem is exactly the icon inside the stroke...
There is an idea to make an image with a white background through before, but this is probably not the best solution.
Help me please)
Answer the question
In order to leave comments, you need to log in
This is where the basic principle of building such frames should become clear
https://codepen.io/the_human_brian/pen/vOrbBG
If a transparent background is not required, then the norms
If required, then you will also have to make the top ridges a pseudo-element
Exactly the solution you wrote is the simplest and best.
Either we simply put a child block with absolute and a white background inside the relative parent block, or we generated it through the :before pseudo-element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question