A
A
Andrey Dyrkov2015-04-05 12:49:35
css
Andrey Dyrkov, 2015-04-05 12:49:35

How to make a hexagon from an image?

there is a picture you need to make a hexagon out of it. I found a solution on the Internet , but it only works if the entire code is copied completely (and that's crooked).

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
olamedia., 2015-04-05
@w999d

one picture? don't touch css then

R
Rad1calDreamer, 2015-04-05
@Rad1calDreamer

htmlbook.ru/blog/maskirovanie-v-css

E
Evgeny Petrov, 2015-04-05
@Petroveg

Using SVG (SVG clip-path for SVG elements) will probably help .

A
Alexander Miranovich, 2015-04-05
@aleks_664

jsfiddle.net/f48ZD/188

B
bob_cody, 2015-05-25
@bob_cody

It's strange, but no one suggested making it in the form of a block - a rectangle with two pseudo-elements - triangles above and below. Suitable if the height of the image is not greater than the height of the hexagon face.
cssdeck.com/labs/quqilh4i

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question