N
N
NewBeHere2018-03-26 14:19:02
Layout
NewBeHere, 2018-03-26 14:19:02

How to make an element look like a letter with a background-image?

Good afternoon. How to render a similar element without using clip-path:

spoiler
5ab8d71d3bee4524559041.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
0
0xD34F, 2018-03-26
@NewBeHere

You can make plain text with an image underneath it, like this :

background: url(...);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

I
Ivan Bogachev, 2018-03-26
@sfi0zy

You wrote in a comment:
Why not use masks ? They seem to be made for this, and will work in all browsers from the time they started supporting SVG at all.

S
stravinsky, 2018-03-28
@stravinsky

I would create one large triangle using css, just there on the divs it can be made by playing with transparent sides. the background would set the diva of the large triangle, then I would place it inside the large triangle and position the small white triangle and the trapezoid at the bottom)
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question