In the example of http://jsfiddle.net/sqk3k2nq/ , the elements are set to be fixed
at the same position.
HTML:
<div>
<span>This is A</span>
<div>
<span>This is B</span>
<div>
<span>This is C</span>
</div>
</div>
</div>
CSS:
div {
border: 1px solid red;
position: fixed;
top: 20px;
left: 20px;
}
However, if we add perspective: 1000px;
to div
, the position will look like relative
instead of fixed
. See http://jsfiddle.net/sqk3k2nq/1/
Why setting perspective
changes it to be relative
?
For some reason, I have to set perspective
to it and I wish A
, B
, and C
can still be in the same position. Is it possible?