S
S
Sergey2018-02-14 13:53:29
css
Sergey, 2018-02-14 13:53:29

How to properly position images?

Here is the conditional structure. Images must be in different <div> blocks (as in the code).
QUESTION. How to make img #3 go on top of img #2 and img #2 go on top of img #1 ?
The structure is mandatory, and the positions are indicated.
Or is there no way at all with such a structure? (

<div position=absolute/fixed>
    <div>
      <div>
        <!-- img №2 -->
        <img z-index=2>				
      </div>
    </div>
  </div>

  <div position=relative>
    <!-- img №1 -->
    <img z-index=1>
      
    <div position=absolute>
      <!-- img №3 -->
      <img z-index=3>
    </div>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aligatro, 2018-02-14
@fenya-fl

Hold

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question