Y
Y
Yuri Avanesov2015-10-27 10:12:36
css
Yuri Avanesov, 2015-10-27 10:12:36

How to make a border with an indent?

Hello!
I've run into a problem that I can't solve on my own. Although I am almost sure that her solution lies on the surface.
4ab0274720df40668c485760ad5fee58.png
There is such a block, it has a border, which will change with :hover. The problem is to make exactly the border with such an indent, which I can’t handle on my own. Can anyone suggest some solutions to the problem?
So far, only 4 separate classes come to mind, each of which will have its own border (well, or background).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-10-27
@avanesov

Here is an example with positioning https://jsfiddle.net/jo34yv4h/

R
Rithmsamba, 2015-10-27
@Rithmsamba

Use a negative margin
Like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question