M
M
msimrial2015-09-25 09:23:25
css
msimrial, 2015-09-25 09:23:25

How much, when placing a block on a picture, is the picture always in front?

Example
implemented for the senior block

  • position: absolute;
  • width: 40px
  • height: 40px;
  • background-color: grey;
  • top: 0px;
  • z-index: 9999;

UPD - https://jsfiddle.net/u6694mom/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gregory, 2015-09-25
@msimrial

Typical example:

<div class="image-block">
    Можно даже без блока. Текст будет поверх картинки.
    <div>А можно и с блоком. Тоже будет поверх картинки, если у текущего div будет position:relative.</div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question