I am working on CSS design template.
I have two images imageOne
and imageTwo
.
Both are position: relative
because if I set one of them position: absolute
then it does not stay as responsive anymore and responsiveness is the key here.
What I want is to place imageTwo
on top of imageOne
.
How can I achieve that while twitterbootstrap's responsive feature still works on these two images?
Below is my code: (jsfiddle available here)
<div class="imageOne image"></div>
<div class="imageTwo image"></div>
CSS
.image {
position: relative;
width: 100px;
height: 100px;
border: 1px solid red;
}
.imageOne {
z-index: 0;
}
.imageTwo {
z-index: 1;
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…