S
S
Sergey Goryachev2015-09-27 16:50:59
css
Sergey Goryachev, 2015-09-27 16:50:59

How to make such a block: atypical stroke?

17d6e3c79bed4d1780a9f0b02cc6c6b7.png
I can't make this block. The problem is that it be frisky, both in width and in height.
Please let me know what are the implementation options.
PS: I forgot to clarify that the background of the block should be transparent. Since when implementing the mobile version, this block may appear above the background image.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Zuev, 2015-09-27
@webirus

Why not just build the left and right sides using pseudo-elements?
jsfiddle.net/yurzui/w61r9ejj

M
Maxim Timofeev, 2015-09-27
@webinar

1. border: green #2px solid;
inside a block with borders, a block that has negative margins and overlaps part of the top and bottom borders
2. Two png backgrounds with transparency
3. Not exactly the same, but you can play with the border-radius by setting only the left and right borders and the border radius , get a similar effect, but the angle will be smaller

T
Think With Your Head, 2015-09-27
@Vyad

the usual border + before and after which overlap it from below and above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question