K
K
kivi_potatoe2015-10-18 10:35:10
css
kivi_potatoe, 2015-10-18 10:35:10

How to make a hole in a layered HTML block?

06830d82f7d84a5bbf077025f13b2d55.png
Is it even possible?
I know the way with backgrounds, svg, mask, but all of them are not suitable in their original version. Any ideas? Agree on any crutches.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Schoolboy., 2015-10-18
@viphorizon

.border {
width:250px;
height:100px;
border: 100px solid pink
}

<!--ВСТАВЛЯЙТЕ DIV Сколько хотите, только размер border не забывайте менять-->
<div class="border"></div>

K
keslo, 2015-10-18
@keslo

Try using drawing on canvas:
- draw a pink block
- draw a white block
- clear part of the canvas (hole)
- add text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question