T
T
tvsjke2016-09-27 15:21:37
JavaScript
tvsjke, 2016-09-27 15:21:37

How to make a slash in price?

I'm making up my first template in my life. Stuck with the layout of the price
dbada922aa88485aad9f0215ed321666.jpg
Let's say I make a slash through :after and rotate, but how do I scatter the text in different corners? I ask you to suggest the principle itself, it is not necessary to write code) Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
M-ka, 2016-09-27
@M-ka

I also did not understand the essence of the question, well, you need to get something? Get it, who's stopping you?
What's the problem?
Basically, what's going on.....

I
iBird Rose, 2016-09-27
@tvsjke

take div - relative. in it you spend a slash through after;
put 2 spans into this div - position: absolute;
one of which is top: 0; left: 0;
second - right: 0; bottom: 0;

P
Peter, 2016-09-27
@petermzg

So make the line in the main element, but write the text in :before and :after

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question