N
N
newbieman2015-03-04 19:16:38
css
newbieman, 2015-03-04 19:16:38

How to make two images superimposed on each other in fluid layout dependent?

The two pictures are superimposed on each other by means of a layer control (z-index).
How to make that when scaling and resizing the browser window, they move together without changing the size?
654bcde6570242f488b3917cad840df1.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikolai Dombrovsky, 2015-03-04
@newbieman

on the div, the sizes are fixed, the sizes of the images are relative to the size of the container. Because container dimensions do not change - image dimensions also remain constant.
That's just with scaling it's not so easy to ride. If you want - use js and catch changes. in jQuery $(window).resize();

K
Kjuri, 2015-03-04
@Kjuri

stuff them into a common div block, position:relative block

M
makinggood, 2017-12-08
@rafamont

https://codepen.io/search/pens?q=canvas+particles&...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question