S
S
sergey19892015-12-17 18:57:38
css
sergey1989, 2015-12-17 18:57:38

Responsive image preloader?

Good day. Please advise a preloader for adaptive images. I can’t figure out how to set the size of the image that will be displayed after loading to the preloader block? There are no problems for a fixed size, but the pictures on the site are adaptive.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2015-12-17
@sergey1989

Just center inside the block, for example with the background:

.image_container {
    background: url(preloader.gif) no-repeat 50% 50%;
}

S
sergey1989, 2015-12-17
@sergey1989

Set min-height of image block for each device? otherwise the preloader appears on one line of the beginning of the text.
5dd7773a0e3e4937ab3f3be4addeac66.JPG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question