S
S
Sergey2015-06-24 20:13:11
css
Sergey, 2015-06-24 20:13:11

How to make a selection of a menu item in the form of an inverted house?

Good day!
I've already broken my whole head: the designer drew the selection of the menu item as follows
c114f816f809486db24f31b7fb4cee09.jpg
. the cell size is not fixed, the image is used as the background. And on different menu items there are different degrees of creeping out:
3d302e4dbbd34a1089ed9d18a6cd9536.JPG
What are the solutions so as not to lose quality and at the same time the height of the block does not jump? Thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Radkov, 2015-06-25
@x__miller_x

The background-size property will help you: 100% 100%; - the background is stretched over the container.
codepen.io/paulradzkov/pen/JdOBbg?editors=110

D
Dmitry, 2015-06-24
@mytmid

It's done the same way here.

A
Andrey, 2015-06-24
@AndreyMyagkov

triangle generator apps.eky.hk/css-triangle-generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question