L
L
Legioner9112015-02-07 21:27:29
css
Legioner911, 2015-02-07 21:27:29

Less compiles the path ../ to:/, how to avoid this?

I have the path to the picture. background: url(../images/phone.png) no-repeat;
And less compiles background: url(:/images/phone.png) no-repeat;and, accordingly, does not find the picture. Please tell me how to get around this. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rikcon, 2015-02-07
@Legioner911

background: url('../images/phone.png') no-repeat;

V
Vadim Belkin, 2015-02-07
@BelkinVadim

Strange, this address should compile correctly. Try to put "../images/" into a variable, and specify the path to the images using this variable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question