R
R
retyui2014-12-23 16:06:25
css
retyui, 2014-12-23 16:06:25

Single use of base64 in css?

I have this piece of code:

background: url(../images/temer-comp.png) center 54% no-repeat,url(../images/temer-comp.png) 25.5% 54% no-repeat,url(../images/temer-comp.png) 74.5% 54% no-repeat;

I decided to replace the temer-comp.png file with a size of .5kb
with base64, which is logical.
but i will have to insert base64 images 3 times.
background: url('data:image/png;base64,....')  х 3..;

does anyone know how to get rid of the repetition?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Lebedev, 2014-12-23
@swanrnd

There are background-image and background-position properties.

H
haiku, 2014-12-23
@haiku

Nanooptimization detected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question